Suppress firing events at load time if an error has already occurred (#4801)

This commit is contained in:
Ben Staddon authored and mezz committed 2018-04-12 17:18:43 -07:00
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();