aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-05 17:33:56 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-05 17:33:56 +0200
commitae3d73d4d7f1049ca214d3286573870605cbcfd8 (patch)
tree0b79c6a44fe2a5cc26940b7d1212198c2cec0b27 /src/main/java
parentd4c242bf976431722d7928883526e79ac74845eb (diff)
downloadskyhanni-ae3d73d4d7f1049ca214d3286573870605cbcfd8.tar.gz
skyhanni-ae3d73d4d7f1049ca214d3286573870605cbcfd8.tar.bz2
skyhanni-ae3d73d4d7f1049ca214d3286573870605cbcfd8.zip
Removed pet display while inside the rift
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt
index 936aa04ae..d1b2ace7e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt
@@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.data.ProfileStorageData
import at.hannibal2.skyhanni.events.GuiRenderEvent
import at.hannibal2.skyhanni.events.InventoryOpenEvent
import at.hannibal2.skyhanni.events.LorenzChatEvent
+import at.hannibal2.skyhanni.features.rift.RiftAPI
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.between
@@ -62,6 +63,7 @@ class CurrentPetDisplay {
@SubscribeEvent
fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) {
if (!LorenzUtils.inSkyBlock) return
+ if (RiftAPI.inRift()) return
if (!SkyHanniMod.feature.misc.petDisplay) return
val config = ProfileStorageData.profileSpecific ?: return