diff --git a/src/main/java/net/minecraftforge/registries/GameData.java b/src/main/java/net/minecraftforge/registries/GameData.java index 507b4e6bb..f412c88e1 100644 --- a/src/main/java/net/minecraftforge/registries/GameData.java +++ b/src/main/java/net/minecraftforge/registries/GameData.java @@ -374,11 +374,12 @@ public class GameData } public static CompletableFuture> checkForRevertToVanilla(final Executor executor, final CompletableFuture> listCompletableFuture) { - return listCompletableFuture.thenApplyAsync(errors -> { - if (!errors.isEmpty()) { + return listCompletableFuture.whenCompleteAsync((errors, except) -> { + if (except != null) { + 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"); } - return errors; }, executor); }