Fix slight oversight in right-click equip helper

This commit is contained in:
jss2a98aj committed 2023-02-27 18:51:08 -05:00
1 parent 23eae335e2
commit f6dea397c0
1 file changed
+1 -1
@@ -56,7 +56,7 @@ public class BaubleItemHelper {
if(!worldIn.isRemote) {
baubles.setInventorySlotContents(slotIndex, itemStackIn.copy());
if(!player.capabilities.isCreativeMode) {
itemStackIn.stackSize--;
itemStackIn.stackSize = 0;
//Work around the event being fired twice in single player before the return stack is set.
player.inventory.setInventorySlotContents(player.inventory.currentItem, itemStackIn);
}