mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
stupid ChunkPosition's are relative to the chunk
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
a7ed1c966b
commit
c21d7cb77c
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ public class CraftChunk implements Chunk {
|
|||
for (Object obj : chunk.l.keySet().toArray()) {
|
||||
if (!(obj instanceof ChunkPosition)) continue;
|
||||
ChunkPosition position = (ChunkPosition) obj;
|
||||
entities[index++] = worldServer.getWorld().getBlockAt(position.a, position.b, position.c).getState();
|
||||
entities[index++] = worldServer.getWorld().getBlockAt(position.a + (chunk.j << 4), position.b, position.c + (chunk.k << 4)).getState();
|
||||
}
|
||||
return entities;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue