aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-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.kt2
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 }