mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
fixed addItem hopefully
By: tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
331c51643d
commit
28b41663ea
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue