mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 11:29:23 +01:00
Fixed animation on stands.
This commit is contained in:
parent
fbdfc2e845
commit
a841121dde
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ public class BlockDisplayStand extends BlockContainerBase {
|
|||
heldItem.shrink(1);
|
||||
else
|
||||
player.swing(hand, true);
|
||||
return InteractionResult.CONSUME;
|
||||
return InteractionResult.SUCCESS;
|
||||
} else if (ItemUtil.canBeStacked(heldItem, stackThere)) {
|
||||
int maxTransfer = Math.min(stackThere.getCount(), heldItem.getMaxStackSize() - heldItem.getCount());
|
||||
if (maxTransfer > 0) {
|
||||
|
@ -87,7 +87,7 @@ public class BlockDisplayStand extends BlockContainerBase {
|
|||
ItemStack newStackThere = stackThere.copy();
|
||||
newStackThere.shrink(maxTransfer);
|
||||
stand.inv.setStackInSlot(0, newStackThere);
|
||||
return InteractionResult.CONSUME;
|
||||
return InteractionResult.SUCCESS;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue