1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Merge pull request #2404 from Sfiguz7/master

Fixes #2403
This commit is contained in:
TheBusyBiscuit 2020-10-07 14:30:10 +02:00 committed by GitHub
commit 942cb8e1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,8 +127,8 @@ public class DirtyChestMenu extends ChestMenu {
if (ItemUtils.canStack(wrapper, stack)) {
amount -= (stack.getMaxStackSize() - stack.getAmount());
item.setAmount(amount);
stack.setAmount(Math.min(stack.getAmount() + item.getAmount(), stack.getMaxStackSize()));
item.setAmount(amount);
}
}
}