stupid ChunkPosition's are relative to the chunk

This commit is contained in:
Tahg 2011-03-11 17:57:59 -05:00
parent 078f48c0fb
commit 5c4f1d75b5

View File

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