mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Don't crash on exception during loading of item variants from blockstate jsons.
This commit is contained in:
1 parent
856a9c3cdd
commit
f562579054
1 file changed
+8
-1
@@ -203,7 +203,14 @@ 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");
|
||||
registerVariant(getModelBlockDefinition(memory), memory);
|
||||
try
|
||||
{
|
||||
registerVariant(getModelBlockDefinition(memory), memory);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
FMLLog.getLogger().warn("Unable to load definition " + memory, exception);
|
||||
}
|
||||
}
|
||||
else stateModels.put(memory, model);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user