mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fixed an Empowerer dupe bug
This commit is contained in:
parent
db9a3a9289
commit
1fc5320be6
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ public class BlockEmpowerer extends BlockContainerBase{
|
||||||
if(maxTransfer > 0){
|
if(maxTransfer > 0){
|
||||||
player.setHeldItem(hand, StackUtil.addStackSize(heldItem, maxTransfer));
|
player.setHeldItem(hand, StackUtil.addStackSize(heldItem, maxTransfer));
|
||||||
ItemStack newStackThere = stackThere.copy();
|
ItemStack newStackThere = stackThere.copy();
|
||||||
StackUtil.addStackSize(newStackThere, -maxTransfer);
|
newStackThere = StackUtil.addStackSize(newStackThere, -maxTransfer);
|
||||||
empowerer.setInventorySlotContents(0, StackUtil.validateCheck(newStackThere));
|
empowerer.setInventorySlotContents(0, StackUtil.validateCheck(newStackThere));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue