mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Reverted invalid clone. Fixes BUKKIT-1198
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
parent
344f7d09a2
commit
e1b4d5f3ae
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue