mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-10-26 14:23:55 +00:00
Fix slight oversight in right-click equip helper
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user