mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-23 13:39:43 +00:00
Suppress firing events at load time if an error has already occurred (#4801)
This commit is contained in:
1 parent
76591f7245
commit
d0566ebadc
4 files changed
+21
-1
No files matched your search
@@ -952,6 +952,8 @@ public final class ModelLoader extends ModelBakery
|
||||
*/
|
||||
public void onPostBakeEvent(IRegistry<ModelResourceLocation, IBakedModel> modelRegistry)
|
||||
{
|
||||
if (!isLoading) return;
|
||||
|
||||
IBakedModel missingModel = modelRegistry.getObject(MODEL_MISSING);
|
||||
Map<String, Integer> modelErrors = Maps.newHashMap();
|
||||
Set<ResourceLocation> printedBlockStateErrors = Sets.newHashSet();
|
||||
|
||||
Reference in new issue
Block a user