mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
commit
942cb8e1e1
@ -127,8 +127,8 @@ public class DirtyChestMenu extends ChestMenu {
|
|||||||
|
|
||||||
if (ItemUtils.canStack(wrapper, stack)) {
|
if (ItemUtils.canStack(wrapper, stack)) {
|
||||||
amount -= (stack.getMaxStackSize() - stack.getAmount());
|
amount -= (stack.getMaxStackSize() - stack.getAmount());
|
||||||
item.setAmount(amount);
|
|
||||||
stack.setAmount(Math.min(stack.getAmount() + item.getAmount(), stack.getMaxStackSize()));
|
stack.setAmount(Math.min(stack.getAmount() + item.getAmount(), stack.getMaxStackSize()));
|
||||||
|
item.setAmount(amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user