Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed May 15, 2021
1 parent 2aac10d commit ad8baa0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down Expand Up @@ -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}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad8baa0

Please sign in to comment.