diff options
author | Tahg <tahgtahv@gmail.com> | 2011-03-11 17:57:59 -0500 |
---|---|---|
committer | Tahg <tahgtahv@gmail.com> | 2011-03-11 17:57:59 -0500 |
commit | 5c4f1d75b5dc510052eac608421bd7d79dd289ee (patch) | |
tree | cd537e1815527384894727d6c069bc5ed2f04d8f /src | |
parent | 078f48c0fb18a9b1afb35e094cccbb071007b870 (diff) | |
download | craftbukkit-5c4f1d75b5dc510052eac608421bd7d79dd289ee.tar craftbukkit-5c4f1d75b5dc510052eac608421bd7d79dd289ee.tar.gz craftbukkit-5c4f1d75b5dc510052eac608421bd7d79dd289ee.tar.lz craftbukkit-5c4f1d75b5dc510052eac608421bd7d79dd289ee.tar.xz craftbukkit-5c4f1d75b5dc510052eac608421bd7d79dd289ee.zip |
stupid ChunkPosition's are relative to the chunk
Diffstat (limited to 'src')
-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 08ff697e..e013923f 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java @@ -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; } |