Fix Chunk.getTileEntities() (Fixes SPIGOT-62)

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot 2014-11-30 12:15:56 +00:00
parent 9e7e5be4de
commit 56cceb9b4e

View File

@ -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;
}