fixed addItem hopefully

By: tahg <tahgtahv@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-02-04 21:38:15 -08:00
parent 331c51643d
commit 28b41663ea

View file

@ -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