Merge pull request #10464 from abextm/objmarker-template-plane
objectindicators: Correctly match template plane
This commit is contained in:
@@ -326,7 +326,7 @@ public class ObjectIndicatorsPlugin extends Plugin implements KeyListener
|
||||
{
|
||||
if (worldPoint.getRegionX() == objectPoint.getRegionX()
|
||||
&& worldPoint.getRegionY() == objectPoint.getRegionY()
|
||||
&& object.getPlane() == objectPoint.getZ())
|
||||
&& worldPoint.getPlane() == objectPoint.getZ())
|
||||
{
|
||||
// Transform object to get the name which matches against what we've stored
|
||||
if (objectPoint.getName().equals(getObjectComposition(object.getId()).getName()))
|
||||
@@ -423,7 +423,7 @@ public class ObjectIndicatorsPlugin extends Plugin implements KeyListener
|
||||
regionId,
|
||||
worldPoint.getRegionX(),
|
||||
worldPoint.getRegionY(),
|
||||
client.getPlane());
|
||||
worldPoint.getPlane());
|
||||
|
||||
Set<ObjectPoint> objectPoints = points.computeIfAbsent(regionId, k -> new HashSet<>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user