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.patch15
1 files changed, 7 insertions, 8 deletions
diff --git a/nms-patches/ShapedRecipes.patch b/nms-patches/ShapedRecipes.patch
index 9244c282..07b9e0e5 100644
--- a/nms-patches/ShapedRecipes.patch
+++ b/nms-patches/ShapedRecipes.patch
@@ -1,6 +1,6 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/ShapedRecipes.java 2014-11-28 17:43:43.373707429 +0000
-+++ src/main/java/net/minecraft/server/ShapedRecipes.java 2014-11-28 17:38:18.000000000 +0000
-@@ -1,5 +1,11 @@
+--- /home/matt/mc-dev-private//net/minecraft/server/ShapedRecipes.java 2015-02-26 22:40:23.079608134 +0000
++++ src/main/java/net/minecraft/server/ShapedRecipes.java 2015-02-26 22:40:23.079608134 +0000
+@@ -1,5 +1,10 @@
package net.minecraft.server;
+// CraftBukkit start
@@ -8,15 +8,13 @@
+import org.bukkit.craftbukkit.inventory.CraftShapedRecipe;
+// CraftBukkit end
+
-+
public class ShapedRecipes implements IRecipe {
private final int width;
-@@ -14,6 +20,62 @@
- this.items = aitemstack;
+@@ -15,6 +20,62 @@
this.result = itemstack;
}
-+
+
+ // CraftBukkit start
+ public org.bukkit.inventory.ShapedRecipe toBukkitRecipe() {
+ CraftItemStack result = CraftItemStack.asCraftMirror(this.result);
@@ -72,6 +70,7 @@
+ return recipe;
+ }
+ // CraftBukkit end
-
++
public ItemStack b() {
return this.result;
+ }