worldpoint: Fix plane value in toLocalInstance

Fixes runelite/runelite#7985
Fixes runelite/runelite#8045
This commit is contained in:
Jordan Atwood
2019-02-28 15:27:25 -08:00
parent ce2fcd42d4
commit 2922a8b5f8

View File

@@ -211,7 +211,7 @@ public class WorldPoint
// find instance chunks using the template point. there might be more than one.
List<WorldPoint> worldPoints = new ArrayList<>();
final int z = client.getPlane();
final int z = worldPoint.getPlane();
int[][][] instanceTemplateChunks = client.getInstanceTemplateChunks();
for (int x = 0; x < instanceTemplateChunks[z].length; ++x)
{