mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-2271: Custom furnace experience error
By: md_5 <git@md-5.net>
This commit is contained in:
parent
d0547bfe77
commit
bc420eace5
1 changed files with 4 additions and 4 deletions
|
@ -6,8 +6,8 @@
|
||||||
public Map<ItemStack, ItemStack> recipes = Maps.newHashMap();
|
public Map<ItemStack, ItemStack> recipes = Maps.newHashMap();
|
||||||
- private Map<ItemStack, Float> c = Maps.newHashMap();
|
- private Map<ItemStack, Float> c = Maps.newHashMap();
|
||||||
+ private Map<ItemStack, Float> c = Maps.newHashMap(); // PAIL: rename
|
+ private Map<ItemStack, Float> c = Maps.newHashMap(); // PAIL: rename
|
||||||
+ public Map customRecipes = Maps.newHashMap(); // CraftBukkit - add field
|
+ public Map<ItemStack,ItemStack> customRecipes = Maps.newHashMap(); // CraftBukkit - add field
|
||||||
+ public Map customExperience = Maps.newHashMap(); // CraftBukkit - add field
|
+ public Map<ItemStack,Float> customExperience = Maps.newHashMap(); // CraftBukkit - add field
|
||||||
|
|
||||||
public static RecipesFurnace getInstance() {
|
public static RecipesFurnace getInstance() {
|
||||||
return RecipesFurnace.a;
|
return RecipesFurnace.a;
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
- Iterator iterator = this.recipes.entrySet().iterator();
|
- Iterator iterator = this.recipes.entrySet().iterator();
|
||||||
+ // CraftBukkit start - initialize to customRecipes
|
+ // CraftBukkit start - initialize to customRecipes
|
||||||
+ boolean vanilla = false;
|
+ boolean vanilla = false;
|
||||||
+ Iterator iterator = this.customRecipes.entrySet().iterator();
|
+ Iterator<Entry<ItemStack, ItemStack>> iterator = this.customRecipes.entrySet().iterator();
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
|
||||||
Entry entry;
|
Entry entry;
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
- Iterator iterator = this.c.entrySet().iterator();
|
- Iterator iterator = this.c.entrySet().iterator();
|
||||||
+ // CraftBukkit start - initialize to customRecipes
|
+ // CraftBukkit start - initialize to customRecipes
|
||||||
+ boolean vanilla = false;
|
+ boolean vanilla = false;
|
||||||
+ Iterator iterator = this.customRecipes.entrySet().iterator();
|
+ Iterator<Entry<ItemStack, Float>> iterator = this.customExperience.entrySet().iterator();
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
|
||||||
Entry entry;
|
Entry entry;
|
||||||
|
|
Loading…
Reference in a new issue