9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-31 12:56:28 +00:00

修复1.20.6 itemstack

This commit is contained in:
XiaoMoMi
2025-05-17 01:19:04 +08:00
parent a870532f7e
commit 49cddbed23
5 changed files with 13 additions and 8 deletions

View File

@@ -14,11 +14,11 @@ public class ComponentItemWrapper implements ItemWrapper<ItemStack> {
private final ItemStack item;
public ComponentItemWrapper(final ItemStack item) {
this.item = item;
this.item = FastNMS.INSTANCE.ensureCraftItemStack(item);
}
public ComponentItemWrapper(final ItemStack item, int count) {
this.item = item;
this.item = FastNMS.INSTANCE.ensureCraftItemStack(item);
this.item.setAmount(count);
}