diff --git a/Dustbin/CHANGELOG.md b/Dustbin/CHANGELOG.md index 74a39e1..2654423 100644 --- a/Dustbin/CHANGELOG.md +++ b/Dustbin/CHANGELOG.md @@ -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资源`,以获得更好的灵活性 diff --git a/Dustbin/TankPatch.cs b/Dustbin/TankPatch.cs index 9ab02ff..bb46ac0 100644 --- a/Dustbin/TankPatch.cs +++ b/Dustbin/TankPatch.cs @@ -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 } } } -} \ No newline at end of file +}