diff --git a/build.gradle.kts b/build.gradle.kts index 8aedcef..0f9ac0a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -39,6 +39,9 @@ loom { arg("--tweakClass", "cc.polyfrost.oneconfigwrapper.OneConfigWrapper") property("mixin.debug.export", "true") } + runConfigs.named("client") { + vmArgs.remove("-XstartOnFirstThread") + } } if (project.platform.isForge) { forge { diff --git a/gradle.properties b/gradle.properties index 2b6f6ff..db6c3fb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ mod_name = PolyTime mod_id = polytime -mod_version = 1.0.0-alpha4 +mod_version = 1.0.0-beta1 essential.defaults.loom=0 diff --git a/src/main/java/cc/polyfrost/polytime/PolyTime.java b/src/main/java/cc/polyfrost/polytime/PolyTime.java index f63d943..425fc7c 100644 --- a/src/main/java/cc/polyfrost/polytime/PolyTime.java +++ b/src/main/java/cc/polyfrost/polytime/PolyTime.java @@ -31,7 +31,7 @@ public class PolyTime { @net.minecraftforge.fml.common.Mod.EventHandler public void onFMLInitialization(net.minecraftforge.fml.common.event.FMLInitializationEvent event) { config = new TimeConfig(); - CommandManager.INSTANCE.registerCommand(TimeCommand.class); + CommandManager.INSTANCE.registerCommand(new TimeCommand()); calculateSunriseSunset(); calculateMoonPhases(); } diff --git a/src/main/java/cc/polyfrost/polytime/command/TimeCommand.java b/src/main/java/cc/polyfrost/polytime/command/TimeCommand.java index aa0eb2a..6d2bb0e 100644 --- a/src/main/java/cc/polyfrost/polytime/command/TimeCommand.java +++ b/src/main/java/cc/polyfrost/polytime/command/TimeCommand.java @@ -4,11 +4,11 @@ import cc.polyfrost.oneconfig.utils.commands.annotations.Command; import cc.polyfrost.oneconfig.utils.commands.annotations.Main; -@Command(value = PolyTime.MODID, description = "Access the " + PolyTime.NAME + " GUI.") +@Command(value = PolyTime.MODID, description = "Access the " + PolyTime.NAME + " GUI.", aliases = "timechanger") public class TimeCommand { @Main - private static void main() { + private void main() { PolyTime.INSTANCE.config.openGui(); } } \ No newline at end of file