mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-26 15:21:22 +01:00
Fixed loading issue when converting old AWB recipes
This commit is contained in:
parent
489039965e
commit
b52cb720e9
@ -98,8 +98,11 @@ public abstract class RecipeManager {
|
|||||||
ShapedRecipe recipe = new ShapedRecipe(key, MMOItems.plugin.getItems().getItem(type, id));
|
ShapedRecipe recipe = new ShapedRecipe(key, MMOItems.plugin.getItems().getItem(type, id));
|
||||||
recipe.shape("012", "345", "678");
|
recipe.shape("012", "345", "678");
|
||||||
|
|
||||||
for (int j = 0; j < 9; j++)
|
for (int j = 0; j < 9; j++) {
|
||||||
setIngredientOrAir(recipe, ("" + j).charAt(0), config.getConfigurationSection(id + ".advanced-craft." + j));
|
ConfigurationSection section = config.getConfigurationSection(id + ".advanced-craft." + j);
|
||||||
|
if (section != null)
|
||||||
|
setIngredientOrAir(recipe, ("" + j).charAt(0), section);
|
||||||
|
}
|
||||||
|
|
||||||
registerRecipe(key, recipe);
|
registerRecipe(key, recipe);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user