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