[#12576] 在计算传输的液体量之前,首先检查是否允许该液体输入。
变更摘要
在计算传输液体量之前先检查液体输入是否被允许,将
acceptLiquid检查从transferLiquid移至dumpLiquid中。
状态 Open · 目标分支 master ← Some-adjustments
主要变更
将
acceptLiquid检查从transferLiquid移至dumpLiquid在计算传输液体量之前先检查是否允许该液体输入
作者说明
我已阅读贡献指南。
我已确保代码可编译(如适用)。
我已确保此 PR 中的任何新功能在游戏中正常运行(如适用)。
在计算传输的液体量之前,首先检查是否允许该液体输入。acceptLiquid 检查已从 transferLiquid 移至 dumpLiquid。由于 transferLiquid 极少在其他地方使用,这通常不会产生副作用。
GitHub 原文
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
Before calculating the amount of liquid to transfer, first check if input of that liquid is allowed. The acceptLiquid check from transferLiquid has been moved into dumpLiquid. Since transferLiquid is hardly used elsewhere, this usually doesn't have side effects.
由 MDT GitHub 同步机器人自动同步,中文翻译与摘要由 AI 辅助生成,仅供阅读参考。