Possibly fixed crashes caused by tile entities under certain circumstances.

This commit is contained in:
Warren Loo committed 2011-07-13 00:31:05 -04:00
1 parent d0f904fc50
commit a9cdc36f2c
1 file changed
+3 -1
@@ -1532,12 +1532,14 @@ public class World implements IBlockAccess {
tileentity.z = k;
this.G.add(tileentity);
} else {
this.c.add(tileentity);
// CraftBukkit - order matters, moved down
// this.c.add(tileentity);
Chunk chunk = this.getChunkAt(i >> 4, k >> 4);
if (chunk != null) {
chunk.a(i & 15, j, k & 15, tileentity);
}
this.c.add(tileentity);
}
}
}