9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 10:29:20 +00:00

Update ComponentItemWrapper.java

This commit is contained in:
XiaoMoMi
2025-04-23 18:26:57 +08:00
parent 6929b4a706
commit c62d27fb4c

View File

@@ -23,7 +23,7 @@ public class ComponentItemWrapper implements ItemWrapper<ItemStack> {
}
public void resetComponent(Object type) {
FastNMS.INSTANCE.resetComponent(this.getLiteralObject(), type);
FastNMS.INSTANCE.resetComponent(this.getLiteralObject(), ensureDataComponentType(type));
}
public void setComponent(Object type, final Object value) {