Fix LootManager zulrah location

We pack scene x/y and not world x/y, so create world point from scene.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-08-01 16:49:37 +02:00
parent 19f3d05dae
commit 7598aa0250

View File

@@ -253,7 +253,7 @@ public class LootManager
case NpcID.CAVE_KRAKEN:
worldLocation = krakenPlayerLocation;
break;
case NpcID.ZULRAH: // Green
case NpcID.ZULRAH: // Green
case NpcID.ZULRAH_2043: // Red
case NpcID.ZULRAH_2044: // Blue
for (Map.Entry<Integer, ItemStack> entry : itemSpawns.entries())
@@ -263,7 +263,7 @@ public class LootManager
int packed = entry.getKey();
int unpackedX = packed >> 8;
int unpackedY = packed & 0xFF;
worldLocation = new WorldPoint(unpackedX, unpackedY, worldLocation.getPlane());
worldLocation = WorldPoint.fromScene(client, unpackedX, unpackedY, worldLocation.getPlane());
break;
}
}