feat: 设计新的 PartAbility 通用仓 - #20
Open
MuuuShin wants to merge 1 commit into
Open
Conversation
🔨 Build and Sign状态: 🔗 打开本次构建
|
Contributor
Author
|
注: wherePart 可能不是一个好方案, 可能使用 .or() 会更合适? 另外这些通用仓要限制数量上限吗 另,处理机器控制仓的时候,发现机器控制仓会和主机抢夺控制权,谁最后改变状态,整个机器的开关就听谁的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
该 PR 是 GTM UTILITY multiblock parts API 的配套迁移,修复 GregTech-Odyssey#1809。
此前导热仓、真空接口和太空屏障仓为了兼容大多数多方块结构,会伪装成
IMPORT_ITEMS和IMPORT_FLUIDS。这会使它们参与真实输入仓的数量统计。在原始蒸馏塔等限制仓室数量的机器中,导热仓可能占用输入仓配额,最终导致结构无法成型。
改动内容
PartAbility.UTILITY:PartAbility.UTILITY)HEAT_CONDUCTIONability。IMPORT_ITEMS/IMPORT_FLUIDSability。wherePart(...)。明确不启用的结构
以下结构继续使用普通
where(...),不会自动接纳 UTILITY 部件:addSubPattern(...)附属结构行为变化
UTILITY;具有独立数量限制的部件可额外声明专用 ability。验证
spotlessJavaCheck通过。git diff --check通过。