Sullys Mod

Sullys Mod

1M Downloads

Item display stand wipes stack data on pickup

Linguardium opened this issue ยท 1 comments

commented

Itemstack is copied (which would copy the stack count as well, probably should be using stack.copyWithCount(1))

SMItemUtil.nonCreativeAddItems(player, new ItemStack(itemStand.getDisplayItem().getItem()));

A new ItemStack is created here from the Item, which will have default data (removing enchantments and such).
If the original stack is stored with a count of 1, the stack can be given back to the player upon pickup

commented

That's already fixed indev, thank you :)