mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #2391
This commit is contained in:
parent
07c84af3b5
commit
d09a7e0f93
@ -61,6 +61,7 @@
|
||||
* Fixed Auto Enchanters being unaffected by speed modifications from addons
|
||||
* Fixed Auto Disenchanters being unaffected by speed modifications from addons
|
||||
* Fixed radioactive items still being radioactive when disabled
|
||||
* Fixed #2391
|
||||
|
||||
## Release Candidate 16 (07 Sep 2020)
|
||||
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#16
|
||||
|
@ -127,6 +127,7 @@ 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()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user