mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 05:54:34 +00:00
Update neighbours when tanks get drained/filled with stuff #1523 (experimental)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user