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