mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 14:33:56 +01:00
SPIGOT-2271: Custom furnace experience error
This commit is contained in:
parent
e22506f964
commit
901c5327f8
@ -6,8 +6,8 @@
|
||||
public Map<ItemStack, ItemStack> recipes = Maps.newHashMap();
|
||||
- private Map<ItemStack, Float> c = Maps.newHashMap();
|
||||
+ private Map<ItemStack, Float> c = Maps.newHashMap(); // PAIL: rename
|
||||
+ public Map customRecipes = Maps.newHashMap(); // CraftBukkit - add field
|
||||
+ public Map customExperience = Maps.newHashMap(); // CraftBukkit - add field
|
||||
+ public Map<ItemStack,ItemStack> customRecipes = Maps.newHashMap(); // CraftBukkit - add field
|
||||
+ public Map<ItemStack,Float> customExperience = Maps.newHashMap(); // CraftBukkit - add field
|
||||
|
||||
public static RecipesFurnace getInstance() {
|
||||
return RecipesFurnace.a;
|
||||
@ -31,7 +31,7 @@
|
||||
- Iterator iterator = this.recipes.entrySet().iterator();
|
||||
+ // CraftBukkit start - initialize to customRecipes
|
||||
+ boolean vanilla = false;
|
||||
+ Iterator iterator = this.customRecipes.entrySet().iterator();
|
||||
+ Iterator<Entry<ItemStack, ItemStack>> iterator = this.customRecipes.entrySet().iterator();
|
||||
+ // CraftBukkit end
|
||||
|
||||
Entry entry;
|
||||
@ -57,7 +57,7 @@
|
||||
- Iterator iterator = this.c.entrySet().iterator();
|
||||
+ // CraftBukkit start - initialize to customRecipes
|
||||
+ boolean vanilla = false;
|
||||
+ Iterator iterator = this.customRecipes.entrySet().iterator();
|
||||
+ Iterator<Entry<ItemStack, Float>> iterator = this.customExperience.entrySet().iterator();
|
||||
+ // CraftBukkit end
|
||||
|
||||
Entry entry;
|
||||
|
Loading…
Reference in New Issue
Block a user