From 75687745f884d906967131bb95ac523d0a593d8a Mon Sep 17 00:00:00 2001 From: Max Weber Date: Tue, 17 Dec 2019 13:06:37 -0700 Subject: [PATCH] objectindicators: Correctly match template plane poh and cox instances use a different plane in their source chunks than the destination chunks, which made this unable to remove the objectPoint in most poh wallkits. This also makes it so if you add a dungeon to your poh it won't destroy your markers --- .../plugins/objectindicators/ObjectIndicatorsPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/objectindicators/ObjectIndicatorsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/objectindicators/ObjectIndicatorsPlugin.java index 79bc678f3e..397b24b29c 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/objectindicators/ObjectIndicatorsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/objectindicators/ObjectIndicatorsPlugin.java @@ -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 objectPoints = points.computeIfAbsent(regionId, k -> new HashSet<>());