fix certus tank update spam 2.8 2.9 (#385)

This commit is contained in:
lc-1337 authored and GitHub committed 2025-12-22 15:21:29 +00:00
1 parent 341f1d9236
commit 20f03a8e9f
1 file changed
+2 -2
@@ -73,7 +73,7 @@ public class TileCertusQuartzTank extends TileEntity implements IFluidHandler {
FluidStack drainedFluid = this.tank.drain(amount, doDrain);
int drained = drainedFluid != null ? drainedFluid.amount : 0;
if (drained > 0) {
if (doDrain && drained > 0) {
update();
}
@@ -131,7 +131,7 @@ public class TileCertusQuartzTank extends TileEntity implements IFluidHandler {
int filled = this.tank.fill(fluid, doFill);
if (filled > 0) {
if (doFill && filled > 0) {
update();
}