Throw aggregate exception for erroneous registry event dispatch (#9111)

This means that exceptions occurring during the dispatch of the registry
events, such as those from the suppliers of RegistryObjects, properly
cause a crash rather than merely being logged and allowing the game to
reach the main menu.

Fixes #8720
This commit is contained in:
sciwhiz12 authored and GitHub committed 2022-11-08 12:17:00 -08:00
1 parent bef68991f0
commit 84ab9764e3
1 file changed
+1
@@ -357,6 +357,7 @@ public class GameData
LOGGER.fatal("Detected errors during registry event dispatch, rolling back to VANILLA state");
revertTo(RegistryManager.VANILLA, false);
LOGGER.fatal("Detected errors during registry event dispatch, roll back to VANILLA complete");
throw aggregate;
} else
{
ForgeHooks.modifyAttributes();