Fixed vanillas tile-entity placement bug (thanks Moo0)

This commit is contained in:
Nathan Adams 2011-11-22 21:14:42 +00:00
parent a3399c6431
commit 774e59e179

View File

@ -343,7 +343,7 @@ public class Chunk {
tileentity = this.d(i, j, k); tileentity = this.d(i, j, k);
if (tileentity == null) { if (tileentity == null) {
tileentity = ((BlockContainer) Block.byId[l]).a_(); tileentity = ((BlockContainer) Block.byId[l]).a_();
this.world.setTileEntity(i, j, k, tileentity); this.world.setTileEntity(i2, j, j2, tileentity); // CraftBukkit - Use world rather than in-chunk coords
} }
if (tileentity != null) { if (tileentity != null) {