diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-11-30 12:15:56 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-11-30 12:15:56 +0000 |
commit | 6eb0c79271c6e50fc36972913250dfc5ad19d04f (patch) | |
tree | 61fc5ddef47b2fb9c199fea6c814c8df6af1a29e /src/main/java/org/bukkit | |
parent | 7c0f352486567ca869c62ecd0ec62a2f36acc57b (diff) | |
download | craftbukkit-6eb0c79271c6e50fc36972913250dfc5ad19d04f.tar craftbukkit-6eb0c79271c6e50fc36972913250dfc5ad19d04f.tar.gz craftbukkit-6eb0c79271c6e50fc36972913250dfc5ad19d04f.tar.lz craftbukkit-6eb0c79271c6e50fc36972913250dfc5ad19d04f.tar.xz craftbukkit-6eb0c79271c6e50fc36972913250dfc5ad19d04f.zip |
Fix Chunk.getTileEntities() (Fixes SPIGOT-62)
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftChunk.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java index 9b6632ff..38a25ea0 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java @@ -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; } |