9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 04:19:27 +00:00

修复1.21.2equippable组件

This commit is contained in:
XiaoMoMi
2025-06-29 01:33:55 +08:00
parent 729cba32b0
commit 72e4d7224b
3 changed files with 17 additions and 12 deletions

View File

@@ -46,7 +46,7 @@ public class ComponentItemFactory1_21_2 extends ComponentItemFactory1_21 {
if (data == null) {
item.resetComponent(ComponentTypes.EQUIPPABLE);
} else {
item.setJavaComponent(ComponentTypes.EQUIPPABLE, data.toMap());
item.setSparrowNBTComponent(ComponentTypes.EQUIPPABLE, data.toNBT());
}
}