Back Port "Fix an issue where interfaces would not cause storage buses to re-check their status."
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user