mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 11:58:06 +01:00
fixed addItem hopefully
This commit is contained in:
parent
d59a2332fb
commit
10f4f33ed0
@ -209,7 +209,7 @@ public class CraftInventory implements org.bukkit.inventory.Inventory {
|
||||
} else {
|
||||
// More than a single stack!
|
||||
if (item.getAmount() > getMaxItemStack()) {
|
||||
setItem( firstFree, new CraftItemStack(item.getTypeId(), getMaxItemStack(), item.getDamage()));
|
||||
setItem( firstFree, new CraftItemStack(item.getTypeId(), getMaxItemStack(), item.getDurability()));
|
||||
item.setAmount(item.getAmount() - getMaxItemStack());
|
||||
} else {
|
||||
// Just store it
|
||||
|
Loading…
Reference in New Issue
Block a user