worldpoint: use passed plane when getting instance chunk for localpoint
Without this, fromLocalInstance can only find the template chunk for the player's current plane.
This commit is contained in:
@@ -198,7 +198,7 @@ public class WorldPoint
|
|||||||
|
|
||||||
// get the template chunk for the chunk
|
// get the template chunk for the chunk
|
||||||
int[][][] instanceTemplateChunks = client.getInstanceTemplateChunks();
|
int[][][] instanceTemplateChunks = client.getInstanceTemplateChunks();
|
||||||
int templateChunk = instanceTemplateChunks[client.getPlane()][chunkX][chunkY];
|
int templateChunk = instanceTemplateChunks[plane][chunkX][chunkY];
|
||||||
|
|
||||||
int rotation = templateChunk >> 1 & 0x3;
|
int rotation = templateChunk >> 1 & 0x3;
|
||||||
int templateChunkY = (templateChunk >> 3 & 0x7FF) * CHUNK_SIZE;
|
int templateChunkY = (templateChunk >> 3 & 0x7FF) * CHUNK_SIZE;
|
||||||
|
|||||||
Reference in New Issue
Block a user