Merge pull request #293 from Xfel/master
Fixed pipe connections with tile entities whose blocks don't extend BlockContainer
This commit is contained in:
commit
c4633a4225
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue