mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-3162: Experience ignored for custom recipes
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c37f72b58c
commit
53cffc1f87
1 changed files with 4 additions and 3 deletions
|
@ -12,20 +12,21 @@
|
||||||
|
|
||||||
public static RecipesFurnace getInstance() {
|
public static RecipesFurnace getInstance() {
|
||||||
return RecipesFurnace.a;
|
return RecipesFurnace.a;
|
||||||
@@ -78,6 +80,12 @@
|
@@ -78,6 +80,13 @@
|
||||||
this.a(Items.GOLDEN_HORSE_ARMOR, new ItemStack(Items.GOLD_NUGGET), 0.1F);
|
this.a(Items.GOLDEN_HORSE_ARMOR, new ItemStack(Items.GOLD_NUGGET), 0.1F);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ // CraftBukkit start - add method
|
+ // CraftBukkit start - add method
|
||||||
+ public void registerRecipe(ItemStack itemstack, ItemStack itemstack1, float f) {
|
+ public void registerRecipe(ItemStack itemstack, ItemStack itemstack1, float f) {
|
||||||
+ this.customRecipes.put(itemstack, itemstack1);
|
+ this.customRecipes.put(itemstack, itemstack1);
|
||||||
|
+ this.customExperience.put(itemstack, f);
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
+
|
+
|
||||||
public void registerRecipe(Block block, ItemStack itemstack, float f) {
|
public void registerRecipe(Block block, ItemStack itemstack, float f) {
|
||||||
this.a(Item.getItemOf(block), itemstack, f);
|
this.a(Item.getItemOf(block), itemstack, f);
|
||||||
}
|
}
|
||||||
@@ -92,13 +100,23 @@
|
@@ -92,13 +101,23 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getResult(ItemStack itemstack) {
|
public ItemStack getResult(ItemStack itemstack) {
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
entry = (Entry) iterator.next();
|
entry = (Entry) iterator.next();
|
||||||
@@ -116,13 +134,23 @@
|
@@ -116,13 +135,23 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public float b(ItemStack itemstack) {
|
public float b(ItemStack itemstack) {
|
||||||
|
|
Loading…
Reference in a new issue