geforkt von Mirrors/Paper
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!
|
// More than a single stack!
|
||||||
if (item.getAmount() > getMaxItemStack()) {
|
if (item.getAmount() > getMaxItemStack()) {
|
||||||
CraftItemStack stack = CraftItemStack.asCraftCopy(item);
|
CraftItemStack stack = CraftItemStack.asCraftCopy(item);
|
||||||
|
stack.setAmount(getMaxItemStack());
|
||||||
setItem(firstFree, stack);
|
setItem(firstFree, stack);
|
||||||
item.setAmount(item.getAmount() - getMaxItemStack());
|
item.setAmount(item.getAmount() - getMaxItemStack());
|
||||||
} else {
|
} else {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren