mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Fix for shaped recipes stripping enchantments from the result. Fixes BUKKIT-602
This commit is contained in:
parent
2887f99fe5
commit
d6c6b18ba9
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ public class ShapedRecipes implements CraftingRecipe {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack b(InventoryCrafting inventorycrafting) {
|
public ItemStack b(InventoryCrafting inventorycrafting) {
|
||||||
return new ItemStack(this.e.id, this.e.count, this.e.getData());
|
return new ItemStack(this.e.id, this.e.count, this.e.getData(), this.e.getEnchantments()); // CraftBukkit - copy enchantments
|
||||||
}
|
}
|
||||||
|
|
||||||
public int a() {
|
public int a() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue