mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Show meaningful error if ModelLoaderRegistry is used before the missing model is initialized.
This commit is contained in:
1 parent
9edd056f55
commit
884cc690ea
1 file changed
+4
@@ -192,6 +192,10 @@ public class ModelLoaderRegistry
|
||||
|
||||
public static IModel getMissingModel()
|
||||
{
|
||||
if(ModelLoader.VanillaLoader.INSTANCE.getLoader() == null)
|
||||
{
|
||||
throw new IllegalStateException("Using ModelLoaderRegistry too early.");
|
||||
}
|
||||
return ModelLoader.VanillaLoader.INSTANCE.getLoader().getMissingModel();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user