mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Closes #1128
This commit is contained in:
parent
6a02e54888
commit
6a46513844
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ public class BlockEmpowerer extends BlockContainerBase{
|
|||
if(StackUtil.isValid(heldItem)){
|
||||
if(!StackUtil.isValid(stackThere) && TileEntityEmpowerer.isPossibleInput(heldItem)){
|
||||
ItemStack toPut = heldItem.copy();
|
||||
toPut.grow(1);
|
||||
toPut.setCount(1);
|
||||
empowerer.inv.setStackInSlot(0, toPut);
|
||||
player.setHeldItem(hand, StackUtil.shrink(heldItem, 1));
|
||||
if(!player.capabilities.isCreativeMode) heldItem.shrink(1);
|
||||
return true;
|
||||
}
|
||||
else if(ItemUtil.canBeStacked(heldItem, stackThere)){
|
||||
|
|
Loading…
Reference in a new issue