diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-09 11:17:03 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-09 11:17:17 +0200 |
commit | 6099ebfc0488b94769fcbdb42fd1d50801caf299 (patch) | |
tree | b0964bfe3114f467eedb5a6ddb383d7dd577357b /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | 4a3114fac78902519762868a6107f6c74c9857a5 (diff) | |
download | skyhanni-6099ebfc0488b94769fcbdb42fd1d50801caf299.tar.gz skyhanni-6099ebfc0488b94769fcbdb42fd1d50801caf299.tar.bz2 skyhanni-6099ebfc0488b94769fcbdb42fd1d50801caf299.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt (renamed from src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GfsTabComplete.kt) | 8 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/TabComplete.kt | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GfsTabComplete.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt index a702f9390..6368a94b7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GfsTabComplete.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/GetFromSacksTabComplete.kt @@ -6,10 +6,10 @@ import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.jsonobjects.SackListJson import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -object GfsTabComplete { +object GetFromSacksTabComplete { private val config get() = SkyHanniMod.feature.misc.tabCompleteCommands - private var sackListJson: SackListJson? = null; - private val gfsCommands = arrayOf("gfs", "getfromsacks") + private var sackListJson: SackListJson? = null + private val commands = arrayOf("gfs", "getfromsacks") @SubscribeEvent fun onRepoReload(event: RepositoryReloadEvent) { @@ -18,7 +18,7 @@ object GfsTabComplete { fun handleTabComplete(command: String): List<String>? { if (!isEnabled()) return null - if (command !in gfsCommands) return null + if (command !in commands) return null return sackListJson?.sackList } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/TabComplete.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/TabComplete.kt index b8bb64f57..b003de699 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/TabComplete.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/tabcomplete/TabComplete.kt @@ -20,7 +20,7 @@ object TabComplete { } private fun customTabComplete(command: String): List<String>? { - GfsTabComplete.handleTabComplete(command)?.let { return it } + GetFromSacksTabComplete.handleTabComplete(command)?.let { return it } WarpTabComplete.handleTabComplete(command)?.let { return it } PlayerTabComplete.handleTabComplete(command)?.let { return it } CollectionTracker.handleTabComplete(command)?.let { return it } |