Don't crash on exception during loading of item variants from blockstate jsons.
This commit is contained in:
parent
856a9c3cdd
commit
f562579054
|
@ -203,8 +203,15 @@ public class ModelLoader extends ModelBakery
|
|||
if (model == null || model == getMissingModel())
|
||||
{
|
||||
FMLLog.fine("Item json isn't found for '" + memory + "', trying to load the variant from the blockstate json");
|
||||
try
|
||||
{
|
||||
registerVariant(getModelBlockDefinition(memory), memory);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
FMLLog.getLogger().warn("Unable to load definition " + memory, exception);
|
||||
}
|
||||
}
|
||||
else stateModels.put(memory, model);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue