From ad8baa0063c293d73ae156b8d929f7bdaad8329b Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sat, 15 May 2021 11:47:48 -0400 Subject: [PATCH] 1.0.2 --- build.gradle | 2 +- .../mynameisjeff/skyblockclientupdater/SkyClientUpdater.kt | 2 +- .../skyblockclientupdater/gui/ChooseUpdatedModsScreen.kt | 4 ++-- .../mynameisjeff/skyblockclientupdater/utils/UpdateChecker.kt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index ffda48c..044d791 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { ext.kotlin_version = "1.5.0-RC" -version = "1.0.1" +version = "1.0.2" group = "mynameisjeff" archivesBaseName = "SkyblockClient-Updater" diff --git a/src/main/kotlin/mynameisjeff/skyblockclientupdater/SkyClientUpdater.kt b/src/main/kotlin/mynameisjeff/skyblockclientupdater/SkyClientUpdater.kt index 9ea312f..f9ad171 100644 --- a/src/main/kotlin/mynameisjeff/skyblockclientupdater/SkyClientUpdater.kt +++ b/src/main/kotlin/mynameisjeff/skyblockclientupdater/SkyClientUpdater.kt @@ -13,7 +13,7 @@ import net.minecraftforge.fml.common.gameevent.TickEvent @Mod(modid = "skyblockclientupdater", name = "SkyClient Updater", version = SkyClientUpdater.VERSION, clientSideOnly = true, modLanguage = "kotlin", modLanguageAdapter = "mynameisjeff.skyblockclientupdater.utils.kotlin.KotlinAdapter") object SkyClientUpdater { - const val VERSION = "1.0.1" + const val VERSION = "1.0.2" @JvmField val mc = Minecraft.getMinecraft() diff --git a/src/main/kotlin/mynameisjeff/skyblockclientupdater/gui/ChooseUpdatedModsScreen.kt b/src/main/kotlin/mynameisjeff/skyblockclientupdater/gui/ChooseUpdatedModsScreen.kt index a8f2be9..c410b8c 100644 --- a/src/main/kotlin/mynameisjeff/skyblockclientupdater/gui/ChooseUpdatedModsScreen.kt +++ b/src/main/kotlin/mynameisjeff/skyblockclientupdater/gui/ChooseUpdatedModsScreen.kt @@ -76,7 +76,7 @@ class ChooseUpdatedModsScreen : GuiScreen() { fun updateScreen() { for (e in entries) { - e.toggleButton.displayString = if (e.needsUpdate) "Update" else "Ignore" + e.toggleButton.displayString = if (e.needsUpdate) "Updating" else "Ignoring" } } @@ -107,7 +107,7 @@ class ChooseUpdatedModsScreen : GuiScreen() { ks.toggleButton.visible = visible if (visible) { ks.toggleButton.yPosition = slotTop - ks.toggleButton.displayString = if (ks.needsUpdate) "Update" else "Ignore" + ks.toggleButton.displayString = if (ks.needsUpdate) "Updating" else "Ignoring" mc.fontRendererObj.drawString( "§c${ks.oldFile} §r§l➜ §a${ks.newFile}", diff --git a/src/main/kotlin/mynameisjeff/skyblockclientupdater/utils/UpdateChecker.kt b/src/main/kotlin/mynameisjeff/skyblockclientupdater/utils/UpdateChecker.kt index 06fc57f..60f369c 100644 --- a/src/main/kotlin/mynameisjeff/skyblockclientupdater/utils/UpdateChecker.kt +++ b/src/main/kotlin/mynameisjeff/skyblockclientupdater/utils/UpdateChecker.kt @@ -93,7 +93,7 @@ object UpdateChecker { } fun getLatestMods() { - val mods = JsonParser().parse(WebUtils.fetchResponse("https://cdn.jsdelivr.net/gh/nacrt/SkyblockClient-REPO/files/mods.json")).asJsonArray + val mods = JsonParser().parse(WebUtils.fetchResponse("https://rawcdn.githack.com/nacrt/SkyblockClient-REPO/fc0ff669d34e609f59327efb1f9dbeb2e6dd337b/files/mods.json")).asJsonArray for (m in mods) { val mod = m.asJsonObject val name = mod.get("file").asString