Update neighbours when tanks get drained/filled with stuff #1523 (experimental)

This commit is contained in:
Bernhard Bonigl committed 2015-04-10 12:09:07 +02:00
1 parent 0198ba8012
commit 763b449c41
1 file changed
+2
@@ -25,6 +25,7 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
{
renderOffset = resource.amount;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, this.getBlockType());
}
return amount;
@@ -38,6 +39,7 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
{
renderOffset = -maxDrain;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, this.getBlockType());
}
return amount;
}