make gui semi stable again

This commit is contained in:
Raoul Van den Berge
2015-12-26 01:24:29 +01:00
parent 9b109374fe
commit 487fcb3cbe
8 changed files with 31 additions and 132 deletions

View File

@@ -27,7 +27,10 @@ public abstract class TileMachine extends TileBase implements INetworkTile, IRed
{
connected = false;
worldObj.setBlockState(pos, worldObj.getBlockState(pos).withProperty(BlockMachine.CONNECTED, false));
if (!worldObj.isAirBlock(pos))
{
worldObj.setBlockState(pos, worldObj.getBlockState(pos).withProperty(BlockMachine.CONNECTED, false));
}
}
@Override