mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix Chunk.getTileEntities() (Fixes SPIGOT-62)
This commit is contained in:
1 parent
7c0f352486
commit
6eb0c79271
1 file changed
+1
-1
@@ -111,7 +111,7 @@ public class CraftChunk implements Chunk {
|
||||
}
|
||||
|
||||
BlockPosition position = (BlockPosition) obj;
|
||||
entities[index++] = worldServer.getWorld().getBlockAt(position.getX() + (chunk.locX << 4), position.getY(), position.getZ() + (chunk.locZ << 4)).getState();
|
||||
entities[index++] = worldServer.getWorld().getBlockAt(position.getX(), position.getY(), position.getZ()).getState();
|
||||
}
|
||||
return entities;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user