From 4009c8ec731e860b5835768441c0de6cd2d4aff1 Mon Sep 17 00:00:00 2001 From: Aspw-w <0kcabtuo0@gmail.com> Date: Wed, 22 May 2024 15:25:26 +0900 Subject: [PATCH] Fix API Reloading --- src/main/java/net/aspw/client/Launch.kt | 2 +- src/main/java/net/aspw/client/utils/APIConnecter.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/aspw/client/Launch.kt b/src/main/java/net/aspw/client/Launch.kt index 2309b927..47410c26 100644 --- a/src/main/java/net/aspw/client/Launch.kt +++ b/src/main/java/net/aspw/client/Launch.kt @@ -23,7 +23,7 @@ object Launch { // Client information const val CLIENT_BEST = "NightX" const val CLIENT_FOLDER = "NightX-Client" - const val CLIENT_VERSION = "B124" + const val CLIENT_VERSION = "B125-Beta" const val CLIENT_CHAT = "§7[§5N§di§3g§bh§6t§aX§7] [§eInfo§7] §r" var isStarting = false diff --git a/src/main/java/net/aspw/client/utils/APIConnecter.kt b/src/main/java/net/aspw/client/utils/APIConnecter.kt index b57f0324..e58dc41c 100644 --- a/src/main/java/net/aspw/client/utils/APIConnecter.kt +++ b/src/main/java/net/aspw/client/utils/APIConnecter.kt @@ -54,6 +54,8 @@ object APIConnecter { fun loadDonors() { try { + if (donorCapeLocations.isNotEmpty()) + donorCapeLocations.clear() var gotNames: String tlsAuthConnectionFixes() val nameClient = OkHttpClient.Builder()