mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix parseShaped missing Empty slot item. Closes #3990
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user