summaryrefslogtreecommitdiffstats
path: root/nms-patches/ShapedRecipes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/ShapedRecipes.patch')
-rw-r--r--nms-patches/ShapedRecipes.patch19
1 files changed, 17 insertions, 2 deletions
diff --git a/nms-patches/ShapedRecipes.patch b/nms-patches/ShapedRecipes.patch
index 7ef8d040..55e0cb11 100644
--- a/nms-patches/ShapedRecipes.patch
+++ b/nms-patches/ShapedRecipes.patch
@@ -9,9 +9,24 @@
+import org.bukkit.craftbukkit.inventory.CraftShapedRecipe;
+// CraftBukkit end
- public class ShapedRecipes extends IRecipe {
+ public class ShapedRecipes implements IRecipe {
-@@ -30,6 +34,63 @@
+@@ -22,6 +26,14 @@
+ private final NonNullList<RecipeItemStack> items;
+ private final ItemStack result;
+ private final String e;
++ // CraftBukkit start
++ public MinecraftKey key;
++
++ @Override
++ public void setKey(MinecraftKey key) {
++ this.key = key;
++ }
++ // CraftBukkit end
+
+ public ShapedRecipes(String s, int i, int j, NonNullList<RecipeItemStack> nonnulllist, ItemStack itemstack) {
+ this.e = s;
+@@ -31,6 +43,63 @@
this.result = itemstack;
}