Fix an issue where interfaces would not cause storage buses to re-check their status.

This commit is contained in:
AlgorithmX2
2014-06-23 00:08:38 -05:00
parent d4619fd48e
commit f41c5793fe
3 changed files with 41 additions and 7 deletions
+11 -7
View File
@@ -214,11 +214,7 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
}
}
TileEntity te = iHost.getTileEntity();
if ( hadConfig != hasConfig && te != null && te.getWorldObj() != null )
{
te.getWorldObj().notifyBlocksOfNeighborChange( te.xCoord, te.yCoord, te.zCoord, Platform.air );
}
notifyNeightbors();
}
public void writeToNBT(NBTTagCompound data)
@@ -463,8 +459,7 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
fluids.setInternal( new NullInventory() );
}
TileEntity te = iHost.getTileEntity();
te.getWorldObj().notifyBlocksOfNeighborChange( te.xCoord, te.yCoord, te.zCoord, Platform.air );
notifyNeightbors();
}
public AECableType getCableConnectionType(ForgeDirection dir)
@@ -802,4 +797,13 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
drops.add( is );
}
public void notifyNeightbors()
{
TileEntity te = iHost.getTileEntity();
if ( te != null && te.getWorldObj() != null )
{
te.getWorldObj().notifyBlocksOfNeighborChange( te.xCoord, te.yCoord, te.zCoord, Platform.air );
}
}
}