diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-21 16:24:35 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-21 16:24:35 +0200 |
commit | b9d08d3f7945c72c9683a7649966f0eb23a3c7bc (patch) | |
tree | b44b96634dc7e8d9cf32d239fc180220e425c3df /src/main/java/at/hannibal2 | |
parent | c9eb62dedbec7a5a9f626ba778b14c951fac383e (diff) | |
download | skyhanni-b9d08d3f7945c72c9683a7649966f0eb23a3c7bc.tar.gz skyhanni-b9d08d3f7945c72c9683a7649966f0eb23a3c7bc.tar.bz2 skyhanni-b9d08d3f7945c72c9683a7649966f0eb23a3c7bc.zip |
formatting
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt | 10 |
1 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 0e1c5e5e4..c69600f25 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt @@ -13,6 +13,7 @@ import at.hannibal2.skyhanni.utils.OSUtils import com.google.gson.JsonElement import io.github.moulberry.notenoughupdates.util.Shimmy import java.lang.reflect.Field +import java.lang.reflect.Modifier object SkyHanniConfigSearchResetCommand { fun command(args: Array<String>) { @@ -46,7 +47,7 @@ object SkyHanniConfigSearchResetCommand { "§eSuccessfully reset config element '$term'" } catch (e: Exception) { CopyErrorCommand.logError(e, "Could not reset config element '$term'") - "Could not reset config element '$term'" + "§cCould not reset config element '$term'" } } @@ -57,7 +58,7 @@ object SkyHanniConfigSearchResetCommand { startSearch(args) } catch (e: Exception) { CopyErrorCommand.logError(e, "Error while trying to search config") - "Error while trying to search config" + "§cError while trying to search config" } } @@ -86,7 +87,7 @@ object SkyHanniConfigSearchResetCommand { "§eChanged config element $term." } catch (e: Exception) { CopyErrorCommand.logError(e, "Could not change config element '$term' to '$rawJson'") - "Could not change config element '$term' to '$rawJson'" + "§cCould not change config element '$term' to '$rawJson'" } } @@ -196,8 +197,7 @@ object SkyHanniConfigSearchResetCommand { return map } for (field in obj.javaClass.fields) { - // TODO add this maybe? -// val b = (field.modifiers & Modifiers.STATIC) == 0 + if ((field.modifiers and Modifier.STATIC) == 0) continue val name = field.name val fieldName = "$parentName.$name" |