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
View File
@@ -4,6 +4,7 @@
## Changelog
* 1.4.0
* `Tank dustbin`: Fix single tanks blocking liquid input after receiving their first stack, both with and without dustbin mode.
* `Belt signal dustbin`: Restore item disposal and startup compatibility with the current game simulation loop after DSP 0.10.33/0.10.34 updates.
* Refactorying Tank input logic codes, for better performance, and resolve a bug [#53](https://github.com/soarqin/DSP_Mods/issues/53)
* Remove use of AssetBundle, move the belt signal icon into `Assembly Resources`, for better flexibility.
@@ -45,6 +46,7 @@
## 更新日志
* 1.4.0
* `储液罐垃圾桶`:修复单层储液罐装入第一批液体后停止输入的问题,普通储存和垃圾桶模式均可正常工作。
* `传送带信号垃圾桶`:适配当前游戏的模拟循环,修复 DSP 0.10.33/0.10.34 更新后的启动报错和物品无法销毁问题。
* 重构储液罐的输入逻辑代码,以提高性能并解决bug [#53](https://github.com/soarqin/DSP_Mods/issues/53)
* 移除了AssetBundle的使用,将传送带信号图标移入`Assembly资源`,以获得更好的灵活性
+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
}
}
}
}
}