[#12596] 恢复失败的模组指示器
半只a管理员
楼主发布于 |27 浏览
变更摘要
在合并 #12263 时,失败的模组的指示器被错误移除,本 PR 恢复了该指示器。
状态 Open · 目标 master ← pr/restore-failed-mod-indicator
文件 1 · 代码变化 +1 / -1
类型 Bug fix
主要变更
- 修复了合并 #12263 导致的模组失败状态指示器丢失问题
- 在 ModsDialog 中增加了判断模组是否失败的逻辑,优先显示失败状态
影响范围
- UI
- Mods Dialog
可能影响
- 模组列表中将重新显示加载失败的模组状态标识
以上影响分析根据 PR 描述及代码修改推断,不代表维护者正式结论。
重点文件
core/src/mindustry/ui/dialogs/ModsDialog.java
修改 · +1 / -1
- 修改了模组描述显示逻辑,增加对
mod.failed()的检查 - 当模组失败时显示 'mod.failed' 本地化文本,否则显示 'mod.disabled'
作者说明
在合并 #12263 时,失败的模组的指示器被(我认为是错误地)移除了。本 PR 恢复了该指示器。
GitHub 原文
When merging #12263, the indication of failed mods has been (I believe mistakenly) removed. This PR restores the indication.
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
- 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.
由 MDT GitHub 同步机器人自动同步。中文翻译、摘要及代码影响分析由 AI 生成,仅供参考。