From d983cb9e80a7490eb23076c20fa28e4555d2162e Mon Sep 17 00:00:00 2001 From: miozune Date: Wed, 20 Jul 2022 08:23:13 +0900 Subject: [PATCH] Use finish instead of pause on load crash (#2) * Use finish instead of pause on load crash * Fix version --- gradle.properties | 4 ++-- src/main/java/vfyjxf/bettercrashes/BetterCrashes.java | 9 +++++---- .../bettercrashes/mixins/minecraft/MinecraftMixin.java | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index b2c7271..8f12427 100644 --- a/gradle.properties +++ b/gradle.properties @@ -33,7 +33,7 @@ developmentEnvironmentUserName = Developer # The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's # version in @Mod([...], version = VERSION, [...]) # Leave these properties empty to skip individual token replacements -replaceGradleTokenInFile = Tags.java +replaceGradleTokenInFile = BetterCrashes.java gradleTokenModId = GRADLETOKEN_MODID gradleTokenModName = GRADLETOKEN_MODNAME gradleTokenVersion = GRADLETOKEN_VERSION @@ -76,4 +76,4 @@ usesShadowedDependencies = false #customArchiveBaseName = # Optional parameter to prevent the source code from being published -# noPublishedSources = \ No newline at end of file +# noPublishedSources = diff --git a/src/main/java/vfyjxf/bettercrashes/BetterCrashes.java b/src/main/java/vfyjxf/bettercrashes/BetterCrashes.java index 2bb47ca..62b62f1 100644 --- a/src/main/java/vfyjxf/bettercrashes/BetterCrashes.java +++ b/src/main/java/vfyjxf/bettercrashes/BetterCrashes.java @@ -10,9 +10,10 @@ import org.apache.logging.log4j.Logger; name = BetterCrashes.NAME, dependencies = BetterCrashes.DEPENDENCIES) public class BetterCrashes { - public static final String MODID = "bettercrashes"; - public static final String NAME = "BetterCrashes"; - public static final String VERSION = "@VERSION@"; + + public static final String MODID = "GRADLETOKEN_MODID"; + public static final String NAME = "GRADLETOKEN_MODNAME"; + public static final String VERSION = "GRADLETOKEN_VERSION"; public static final String DEPENDENCIES = ""; - public static final Logger logger = LogManager.getLogger("BetterCrashes"); + public static final Logger logger = LogManager.getLogger(NAME); } diff --git a/src/main/java/vfyjxf/bettercrashes/mixins/minecraft/MinecraftMixin.java b/src/main/java/vfyjxf/bettercrashes/mixins/minecraft/MinecraftMixin.java index f611556..edafc16 100644 --- a/src/main/java/vfyjxf/bettercrashes/mixins/minecraft/MinecraftMixin.java +++ b/src/main/java/vfyjxf/bettercrashes/mixins/minecraft/MinecraftMixin.java @@ -315,7 +315,7 @@ public abstract class MinecraftMixin { running = true; try { //noinspection deprecation - SplashProgress.pause(); // Disable the forge splash progress screen + SplashProgress.finish(); // Disable the forge splash progress screen } catch (Throwable ignored) { } runGUILoop(new GuiInitErrorScreen(report));