Use max inventory size for new stack. Fixes BUKKIT-3240
Dieser Commit ist enthalten in:
Ursprung
708252c020
Commit
b870755edb
@ -290,6 +290,7 @@ public class CraftInventory implements Inventory {
|
||||
// More than a single stack!
|
||||
if (item.getAmount() > getMaxItemStack()) {
|
||||
CraftItemStack stack = CraftItemStack.asCraftCopy(item);
|
||||
stack.setAmount(getMaxItemStack());
|
||||
setItem(firstFree, stack);
|
||||
item.setAmount(item.getAmount() - getMaxItemStack());
|
||||
} else {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren