fix(dustbin): restore input to nonempty single tanks

Do not require an upper tank when the bottom tank still has room or is configured to destroy incoming fluid.

Refs #63
This commit is contained in:
soarqin committed 2026-10-11 03:32:50 +08:00
1 parent 2cb351ebd3
commit d7783679af
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -212,7 +212,7 @@ public static class TankPatch
}
if (thisTank.fluidCount < thisTank.fluidCapacity || thisTank.IsDustbin)
{
if (cargoTraffic.GetItemIdAtRear(belt) != thisFluidId || thisTank.nextTankId <= 0) return;
if (cargoTraffic.GetItemIdAtRear(belt) != thisFluidId) return;
if (cargoTraffic.TryPickItemAtRear(belt, thisFluidId, null, out stack, out inc) <= 0 || thisTank.IsDustbin) return;
thisTank.fluidCount += stack;
thisTank.fluidInc += inc;
@@ -248,4 +248,4 @@ public static class TankPatch
}
}
}
}
}