Skip to content

Commit

Permalink
Update neighbours when tanks get drained/filled with stuff #1523 (exp…
Browse files Browse the repository at this point in the history
…erimental)
  • Loading branch information
bonii-xx committed Apr 10, 2015
1 parent 0198ba8 commit 763b449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/tconstruct/smeltery/logic/LavaTankLogic.java
Expand Up @@ -25,6 +25,7 @@ public int fill (ForgeDirection from, FluidStack resource, boolean doFill)
{
renderOffset = resource.amount;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, this.getBlockType());
}

return amount;
Expand All @@ -38,6 +39,7 @@ public FluidStack drain (ForgeDirection from, int maxDrain, boolean doDrain)
{
renderOffset = -maxDrain;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, this.getBlockType());
}
return amount;
}
Expand Down

1 comment on commit 763b449

@TherminatorX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmation: comparators attached to tanks will now change signal when tanks are filled with a bucket.

BREAKING NEWS: Filling with a faucet will give all redstone power values from 0-15.

I'd say our work here is done, but I did nothing other than comment, so /your/ work here is done. 😃

Please sign in to comment.