aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-12 22:32:22 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-12 22:32:22 +0200
commit746351e19048c2e33dd6c71b5cf5b7d82f648690 (patch)
tree94cc924a9355c62b40b35d5294358216bd65c44d
parenta288af2776d3bc89c60f0117a95975c7b38667dc (diff)
downloadskyhanni-746351e19048c2e33dd6c71b5cf5b7d82f648690.tar.gz
skyhanni-746351e19048c2e33dd6c71b5cf5b7d82f648690.tar.bz2
skyhanni-746351e19048c2e33dd6c71b5cf5b7d82f648690.zip
added in sb check for some debug features
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
index c18c02234..7a74d3b37 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt
@@ -297,6 +297,7 @@ class SkyHanniDebugsAndTests {
@SubscribeEvent
fun onShowInternalName(event: ItemTooltipEvent) {
+ if (!LorenzUtils.inSkyBlock) return
if (!config.showInternalName) return
val itemStack = event.itemStack ?: return
val internalName = itemStack.getInternalName()
@@ -307,6 +308,7 @@ class SkyHanniDebugsAndTests {
@SubscribeEvent
fun showItemRarity(event: ItemTooltipEvent) {
+ if (!LorenzUtils.inSkyBlock) return
if (!config.showItemRarity) return
val itemStack = event.itemStack ?: return
@@ -316,6 +318,7 @@ class SkyHanniDebugsAndTests {
@SubscribeEvent
fun onSHowNpcPrice(event: ItemTooltipEvent) {
+ if (!LorenzUtils.inSkyBlock) return
if (!config.showNpcPrice) return
val itemStack = event.itemStack ?: return
val internalName = itemStack.getInternalNameOrNull() ?: return