diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-28 13:43:41 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-28 15:10:23 +0200 |
commit | 586947cbea3603fa1c89d4298a18c7a145f92704 (patch) | |
tree | 6f9e63ad7bc3c99978ba170d553e8caf34c8b753 /src/main/java/at | |
parent | bcb79462d90df552994f515b7d573f24b73d2684 (diff) | |
download | skyhanni-586947cbea3603fa1c89d4298a18c7a145f92704.tar.gz skyhanni-586947cbea3603fa1c89d4298a18c7a145f92704.tar.bz2 skyhanni-586947cbea3603fa1c89d4298a18c7a145f92704.zip |
fixed RenderItemTipEvent bug
Diffstat (limited to 'src/main/java/at')
3 files changed, 5 insertions, 13 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index fc458b6d2..53a1286d3 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -82,14 +82,14 @@ class HypixelData { val newState = checkScoreboard() if (newState) { - checkMode() + checkIsland() } if (newState == skyblock) return skyblock = newState } - private fun checkMode() { + private fun checkIsland() { var newIsland = "" var guesting = false for (line in TabListUtils.getTabList()) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemStars.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemStars.kt index 000a2f93a..4573ffa70 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemStars.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemStars.kt @@ -63,10 +63,11 @@ class ItemStars { @SubscribeEvent fun onRenderItemTip(event: RenderItemTipEvent) { if (!SkyHanniMod.feature.inventory.itemNumberAsStackSize.contains(6)) return - val stack = event.stack val number = getCrimsonStars(stack.name ?: return) - event.stackTip = if (number == -1) "" else number.toString() + if (number != -1) { + event.stackTip = number.toString() + } } private fun getStars(name: String): Int { diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt index 4bad04b3d..87473af62 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt @@ -76,15 +76,6 @@ class LorenzTest { println("shouldLogPackets: $shouldLogPackets") } - private var highestStep = 0 - - fun highStep(step: Int) { - if (step > highestStep) { - highestStep = step - text = "" + highestStep - } - } - fun reloadListeners() { val blockedFeatures = try { File("config/skyhanni/blocked-features.txt").readLines().toList() |