9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 01:49:30 +00:00

refactor(core): 优化物品隐藏属性功能

This commit is contained in:
jhqwqmc
2025-07-21 22:15:31 +08:00
parent c8f786a757
commit 99cd3a52ea

View File

@@ -77,7 +77,7 @@ public class HideTooltipModifier<I> implements ItemDataModifier<I> {
if (appliers.isEmpty()) {
this.applier = new DummyApplier<>();
} else if (appliers.size() == 1) {
this.applier = new SemiModernApplier<>(components.getFirst());
this.applier = appliers.getFirst();
} else {
this.applier = new CompoundApplier<>(appliers);
}