Merge pull request #293 from Xfel/master

Fixed pipe connections with tile entities whose blocks don't extend BlockContainer
This commit is contained in:
CovertJaguar 2012-09-18 16:51:36 -07:00
commit c4633a4225

View file

@ -36,7 +36,9 @@ public class TileBuffer {
tile = null;
blockID = world.getBlockId(this.x, this.y, this.z);
if (Block.blocksList[blockID] instanceof BlockContainer)
Block block = Block.blocksList[blockID];
if (block != null
&& block.hasTileEntity(world.getBlockMetadata(this.x, this.y, this.z)))
tile = world.getBlockTileEntity(this.x, this.y, this.z);
}