mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
[Bleeding] Fixed crafting enchanted items, fixes BUKKIT-602
This commit is contained in:
parent
2d5263bfe5
commit
c6273810a1
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ public class CraftInventoryCrafting extends CraftInventory implements CraftingIn
|
||||||
if (item == null || item.getTypeId() <= 0) {
|
if (item == null || item.getTypeId() <= 0) {
|
||||||
contents[0] = null;
|
contents[0] = null;
|
||||||
} else {
|
} else {
|
||||||
contents[0] = new net.minecraft.server.ItemStack( item.getTypeId(), item.getAmount(), item.getDurability());
|
contents[0] = CraftItemStack.createNMSItemStack(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue