Back Port "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 c7692d1be6
commit d750a25fca
3 changed files with 41 additions and 7 deletions
+11 -7
View File
@@ -108,11 +108,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)
@@ -329,8 +325,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)
@@ -518,4 +513,13 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
};
};
public void notifyNeightbors()
{
TileEntity te = iHost.getTileEntity();
if ( te != null && te.getWorldObj() != null )
{
te.getWorldObj().notifyBlocksOfNeighborChange( te.xCoord, te.yCoord, te.zCoord, Platform.air );
}
}
}