mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
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:
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();
|
||||
|
||||
Reference in new issue
Block a user