geforkt von Mirrors/Paper
Use max inventory size for new stack. Fixes BUKKIT-3240
By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Ursprung
5d61bfd5fa
Commit
a04364f6a7
@ -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 {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren