summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-04-03 09:06:42 +1000
committermd_5 <git@md-5.net>2017-04-03 09:06:42 +1000
commit41a7d14f8cdfe1c72c6e2b3af7217bbeb70a1913 (patch)
tree102b7fb5678ee583bf69b6bc64ef860c5171deca
parentb5f7b6d69ff20cbd36b00728de287ac21c424c9f (diff)
downloadcraftbukkit-41a7d14f8cdfe1c72c6e2b3af7217bbeb70a1913.tar
craftbukkit-41a7d14f8cdfe1c72c6e2b3af7217bbeb70a1913.tar.gz
craftbukkit-41a7d14f8cdfe1c72c6e2b3af7217bbeb70a1913.tar.lz
craftbukkit-41a7d14f8cdfe1c72c6e2b3af7217bbeb70a1913.tar.xz
craftbukkit-41a7d14f8cdfe1c72c6e2b3af7217bbeb70a1913.zip
SPIGOT-3162: Experience ignored for custom recipes
-rw-r--r--nms-patches/RecipesFurnace.patch7
1 files changed, 4 insertions, 3 deletions
diff --git a/nms-patches/RecipesFurnace.patch b/nms-patches/RecipesFurnace.patch
index 9bdd8edf..cc0d13be 100644
--- a/nms-patches/RecipesFurnace.patch
+++ b/nms-patches/RecipesFurnace.patch
@@ -12,20 +12,21 @@
public static RecipesFurnace getInstance() {
return RecipesFurnace.a;
-@@ -78,6 +80,12 @@
+@@ -78,6 +80,13 @@
this.a(Items.GOLDEN_HORSE_ARMOR, new ItemStack(Items.GOLD_NUGGET), 0.1F);
}
+ // CraftBukkit start - add method
+ public void registerRecipe(ItemStack itemstack, ItemStack itemstack1, float f) {
+ this.customRecipes.put(itemstack, itemstack1);
++ this.customExperience.put(itemstack, f);
+ }
+ // CraftBukkit end
+
public void registerRecipe(Block block, ItemStack itemstack, float f) {
this.a(Item.getItemOf(block), itemstack, f);
}
-@@ -92,13 +100,23 @@
+@@ -92,13 +101,23 @@
}
public ItemStack getResult(ItemStack itemstack) {
@@ -51,7 +52,7 @@
}
entry = (Entry) iterator.next();
-@@ -116,13 +134,23 @@
+@@ -116,13 +135,23 @@
}
public float b(ItemStack itemstack) {