diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-14 16:27:10 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-14 16:27:10 +0200 |
| commit | 7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a (patch) | |
| tree | 3af4a0a6955e4ea81f7e008ded4f196c01fb4998 /src/main/java/at/hannibal2/skyhanni/test | |
| parent | b4648fe70ce0538325ed6df3ad068e9fe9237c0c (diff) | |
| download | skyhanni-7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a.tar.gz skyhanni-7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a.tar.bz2 skyhanni-7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a.zip | |
renamed CopyErrorCommand to ErrorManager
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt | 8 | ||||
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt (renamed from src/main/java/at/hannibal2/skyhanni/test/command/CopyErrorCommand.kt) | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt index 72a364ec1..bc5a6c25d 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt @@ -5,7 +5,7 @@ import at.hannibal2.skyhanni.config.ConfigManager import at.hannibal2.skyhanni.config.Features import at.hannibal2.skyhanni.config.core.config.Position import at.hannibal2.skyhanni.data.ProfileStorageData -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.makeAccessible import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators @@ -57,7 +57,7 @@ object SkyHanniConfigSearchResetCommand { field.set(parent, defaultObject) "§eSuccessfully reset config element '$term'" } catch (e: Exception) { - CopyErrorCommand.logError(e, "Could not reset config element '$term'") + ErrorManager.logError(e, "Could not reset config element '$term'") "§cCould not reset config element '$term'" } } @@ -68,7 +68,7 @@ object SkyHanniConfigSearchResetCommand { return try { startSearch(args) } catch (e: Exception) { - CopyErrorCommand.logError(e, "Error while trying to search config") + ErrorManager.logError(e, "Error while trying to search config") "§cError while trying to search config" } } @@ -108,7 +108,7 @@ object SkyHanniConfigSearchResetCommand { shimmy.setJson(element) "§eChanged config element $term." } catch (e: Exception) { - CopyErrorCommand.logError(e, "Could not change config element '$term' to '$rawJson'") + ErrorManager.logError(e, "Could not change config element '$term' to '$rawJson'") "§cCould not change config element '$term' to '$rawJson'" } } diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/CopyErrorCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt index 8c713558f..c0d3fd169 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/CopyErrorCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt @@ -10,7 +10,7 @@ import net.minecraft.client.Minecraft import java.util.UUID import java.util.concurrent.TimeUnit -object CopyErrorCommand { +object ErrorManager { // random id -> error message private val errorMessages = mutableMapOf<String, String>() private val fullErrorMessages = mutableMapOf<String, String>() |
