From 1d3e6e9bc0c05f2b8578187db33b71cf38e1f8c0 Mon Sep 17 00:00:00 2001 From: Deftu Date: Sun, 13 Oct 2024 11:21:37 +0200 Subject: [PATCH] Use correct templating syntax --- src/main/kotlin/org/polyfrost/crashpatch/CrashPatch.kt | 8 ++++---- src/main/resources/mcmod.info | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/org/polyfrost/crashpatch/CrashPatch.kt b/src/main/kotlin/org/polyfrost/crashpatch/CrashPatch.kt index 50ef5b2..f4b9eec 100644 --- a/src/main/kotlin/org/polyfrost/crashpatch/CrashPatch.kt +++ b/src/main/kotlin/org/polyfrost/crashpatch/CrashPatch.kt @@ -20,9 +20,9 @@ import java.io.File @Mod(modid = CrashPatch.MODID, version = CrashPatch.VERSION, name = CrashPatch.NAME, modLanguageAdapter = "org.polyfrost.oneconfig.utils.v1.forge.KotlinLanguageAdapter") object CrashPatch { - const val MODID = "@ID@" - const val NAME = "@NAME@" - const val VERSION = "@VER@" + const val MODID = "@MOD_ID@" + const val NAME = "@MOD_NAME@" + const val VERSION = "@MOD_VERSION@" val isSkyclient by lazy(LazyThreadSafetyMode.PUBLICATION) { File(mcDir, "OneConfig/CrashPatch/SKYCLIENT").exists() || File( mcDir, "W-OVERFLOW/CrashPatch/SKYCLIENT").exists() || ModsCheckerPlugin.modsMap.keys.any { it == "skyclientcosmetics" || it == "scc" || it == "skyclientaddons" || it == "skyblockclientupdater" || it == "skyclientupdater" || it == "skyclientcore" } } @@ -42,7 +42,7 @@ object CrashPatch { CommandManager.registerCommand(CrashPatchCommand()) CrashPatchConfig // uncomment to test init screen crashes - // throw Throwable("java.lang.NoClassDefFoundError: xyz/matthewtgm/requisite/keybinds/KeyBind at lumien.custommainmenu.configuration.ConfigurationLoader.load(ConfigurationLoader.java:142) club.sk1er.bossbarcustomizer.BossbarMod.loadConfig cc.woverflow.hytils.handlers.chat.modules.modifiers.DefaultChatRestyler Failed to login: null The Hypixel Alpha server is currently closed! net.kdt.pojavlaunch macromodmodules") + throw Throwable("java.lang.NoClassDefFoundError: xyz/matthewtgm/requisite/keybinds/KeyBind at lumien.custommainmenu.configuration.ConfigurationLoader.load(ConfigurationLoader.java:142) club.sk1er.bossbarcustomizer.BossbarMod.loadConfig cc.woverflow.hytils.handlers.chat.modules.modifiers.DefaultChatRestyler Failed to login: null The Hypixel Alpha server is currently closed! net.kdt.pojavlaunch macromodmodules") } @Command("crashpatch") diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index d438afa..337ce8e 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -3,7 +3,7 @@ "modid": "crashpatch", "name": "CrashPatch", "description": "Stop crashes from closing your game!", - "version": "${version}", + "version": "${mod_version}", "mcversion": "1.8.9", "url": "https://github.com/Polyfrost/CrashPatch", "updateUrl": "https://github.com/Polyfrost/CrashPatch/releases/latest",