From 7598aa02508d3ff81b294e7ee47f8599def27028 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Wed, 1 Aug 2018 16:49:37 +0200 Subject: [PATCH] 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 --- .../src/main/java/net/runelite/client/game/LootManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/game/LootManager.java b/runelite-client/src/main/java/net/runelite/client/game/LootManager.java index 9443c3eff9..91973b2259 100644 --- a/runelite-client/src/main/java/net/runelite/client/game/LootManager.java +++ b/runelite-client/src/main/java/net/runelite/client/game/LootManager.java @@ -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 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; } }