Fixed Pipes not connecting to tile entities whose blocks don't extend BlockContainer
This commit is contained in:
parent
0479fab15d
commit
09d522be58
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…
Reference in a new issue