diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-05-24 17:37:44 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 09:37:44 +0200 |
| commit | 17ac70d7cd8416324acfffcde656930b4e9ae612 (patch) | |
| tree | 97774ea6f112879386bf69df4830a4091f3cd13b /src/main/java/at/hannibal2/skyhanni/test | |
| parent | 2a036647d4a06d8d1c5bcbfe9437c4def1aa7eee (diff) | |
| download | skyhanni-17ac70d7cd8416324acfffcde656930b4e9ae612.tar.gz skyhanni-17ac70d7cd8416324acfffcde656930b4e9ae612.tar.bz2 skyhanni-17ac70d7cd8416324acfffcde656930b4e9ae612.zip | |
Add: Ability to switch repo branch (#1835)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt index 699239c9e..e5ea5ab83 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt @@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.test import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.data.HypixelData import at.hannibal2.skyhanni.data.IslandType +import at.hannibal2.skyhanni.data.repo.RepoManager import at.hannibal2.skyhanni.events.DebugDataCollectEvent import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.LorenzUtils @@ -36,6 +37,7 @@ object DebugCommand { // calling default debug stuff player(event) repoAutoUpdate(event) + repoLocation(event) globalRender(event) skyblockStatus(event) profileName(event) @@ -127,13 +129,18 @@ object DebugCommand { private fun repoAutoUpdate(event: DebugDataCollectEvent) { event.title("Repo Auto Update") - if (SkyHanniMod.feature.dev.repoAutoUpdate) { + if (SkyHanniMod.feature.dev.repo.repoAutoUpdate) { event.addIrrelevant("normal enabled") } else { event.addData("The repo does not auto update because auto update is disabled!") } } + private fun repoLocation(event: DebugDataCollectEvent) { + event.title("Repo Location") + event.addIrrelevant("repo location: '${RepoManager.getRepoLocation()}'") + } + private fun player(event: DebugDataCollectEvent) { event.title("Player") event.addIrrelevant { |
