Merge remote-tracking branch 'origin/certus-tank-spam-fix' into dev

This commit is contained in:
Martin Robertz committed 2025-10-29 07:59:35 +01:00
commit dc93deefa2
1 file changed
+6 -4
@@ -210,12 +210,14 @@ public class TileCertusQuartzTank extends TileEntity implements IFluidHandler {
if (this.tank.getFluid() != null) {
TileCertusQuartzTank below = getTankBelow(this);
if (below != null) {
FluidStack filled = this.tank.getFluid().copy();
filled.amount = below.fill(this.tank.getFluid(), true, true);
if (filled.amount >= 0) {
this.drain(filled, true, true);
FluidStack fluid = this.tank.getFluid().copy();
int amount = below.tank.fill(fluid, true);
if (amount > 0) {
this.tank.drain(amount, true);
this.hasUpdate = true;
below.hasUpdate = true;
this.compareAndUpdate();
below.compareAndUpdate();
}
}
}