mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
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:
1 parent
2cb351ebd3
commit
d7783679af
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user