From 746351e19048c2e33dd6c71b5cf5b7d82f648690 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 12 Oct 2023 22:32:22 +0200 Subject: added in sb check for some debug features --- src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit