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 | |
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')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt | 4 | ||||
-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 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index a9c830393..719414e69 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -58,9 +58,9 @@ import at.hannibal2.skyhanni.features.misc.items.EstimatedWardrobePrice import at.hannibal2.skyhanni.features.misc.items.GlowingDroppedItems import at.hannibal2.skyhanni.features.misc.massconfiguration.DefaultConfigFeatures import at.hannibal2.skyhanni.features.misc.powdertracker.PowderTracker +import at.hannibal2.skyhanni.features.misc.tabcomplete.GetFromSacksTabComplete import at.hannibal2.skyhanni.features.misc.tabcomplete.PlayerTabComplete import at.hannibal2.skyhanni.features.misc.tabcomplete.WarpTabComplete -import at.hannibal2.skyhanni.features.misc.tabcomplete.GfsTabComplete import at.hannibal2.skyhanni.features.misc.teleportpad.TeleportPadCompactName import at.hannibal2.skyhanni.features.misc.teleportpad.TeleportPadInventoryNumber import at.hannibal2.skyhanni.features.misc.tiarelay.TiaRelayHelper @@ -344,7 +344,7 @@ class SkyHanniMod { loadModule(ShowFishingItemName()) loadModule(WarpTabComplete) loadModule(PlayerTabComplete) - loadModule(GfsTabComplete) + loadModule(GetFromSacksTabComplete) loadModule(SlayerItemProfitTracker) loadModule(SlayerItemsOnGround()) loadModule(RestorePieceOfWizardPortalLore()) 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 } |