Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Reverted invalid clone. Fixes BUKKIT-1198
Dieser Commit ist enthalten in:
Ursprung
82fab5b2d5
Commit
71a51b024b
@ -266,7 +266,7 @@ public class CraftInventory implements Inventory {
|
|||||||
} else {
|
} else {
|
||||||
// More than a single stack!
|
// More than a single stack!
|
||||||
if (item.getAmount() > getMaxItemStack()) {
|
if (item.getAmount() > getMaxItemStack()) {
|
||||||
CraftItemStack stack = new CraftItemStack(item);
|
CraftItemStack stack = new CraftItemStack(item.getTypeId(), getMaxItemStack(), item.getDurability());
|
||||||
stack.addUnsafeEnchantments(item.getEnchantments());
|
stack.addUnsafeEnchantments(item.getEnchantments());
|
||||||
setItem(firstFree, stack);
|
setItem(firstFree, stack);
|
||||||
item.setAmount(item.getAmount() - getMaxItemStack());
|
item.setAmount(item.getAmount() - getMaxItemStack());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren