Fixed an Empowerer dupe bug

This commit is contained in:
Ellpeck 2016-11-18 23:14:49 +01:00
parent db9a3a9289
commit 1fc5320be6

View file

@ -68,7 +68,7 @@ public class BlockEmpowerer extends BlockContainerBase{
if(maxTransfer > 0){
player.setHeldItem(hand, StackUtil.addStackSize(heldItem, maxTransfer));
ItemStack newStackThere = stackThere.copy();
StackUtil.addStackSize(newStackThere, -maxTransfer);
newStackThere = StackUtil.addStackSize(newStackThere, -maxTransfer);
empowerer.setInventorySlotContents(0, StackUtil.validateCheck(newStackThere));
return true;
}