Fix parseShaped missing Empty slot item. Closes #3990

This commit is contained in:
LexManos committed 2017-06-14 20:25:22 -07:00
1 parent 5e70ee45be
commit dbc0a4e0fd
1 file changed
+4
@@ -308,6 +308,7 @@ public class CraftingHelper {
}
HashMap<Character, Ingredient> itemMap = Maps.newHashMap();
itemMap.put(' ', Ingredient.field_193370_a);
for (; idx < recipe.length; idx += 2)
{
@@ -315,6 +316,9 @@ public class CraftingHelper {
Object in = recipe[idx + 1];
Ingredient ing = CraftingHelper.getIngredient(in);
if (' ' == chr.charValue())
throw new JsonSyntaxException("Invalid key entry: ' ' is a reserved symbol.");
if (ing != null)
{
itemMap.put(chr, ing);