summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/dungeon
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-08 13:23:09 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-08 13:23:09 +0100
commit22f6efe16fb49db123d10cf0117a85feea197ce1 (patch)
treeb6392c2617c6f443fde225e325f11ed34f77344e /src/main/java/at/hannibal2/skyhanni/features/dungeon
parent6aaf8e71d1264b7e2205bce0f270a5adc6cda0ac (diff)
downloadskyhanni-22f6efe16fb49db123d10cf0117a85feea197ce1.tar.gz
skyhanni-22f6efe16fb49db123d10cf0117a85feea197ce1.tar.bz2
skyhanni-22f6efe16fb49db123d10cf0117a85feea197ce1.zip
Use LorenzToolTipEvent over ItemTooltipEvent if possible.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
index f21274a02..a99c081c1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonFinderFeatures.kt
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
import at.hannibal2.skyhanni.events.GuiContainerEvent
import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent
+import at.hannibal2.skyhanni.events.LorenzToolTipEvent
import at.hannibal2.skyhanni.events.RenderItemTipEvent
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.InventoryUtils.getInventoryName
@@ -17,7 +18,6 @@ import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import net.minecraft.client.gui.inventory.GuiChest
import net.minecraft.inventory.ContainerChest
-import net.minecraftforge.event.entity.player.ItemTooltipEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class DungeonFinderFeatures {
@@ -136,11 +136,10 @@ class DungeonFinderFeatures {
}
@SubscribeEvent
- fun onItemTooltip(event: ItemTooltipEvent) {
+ fun onItemTooltip(event: LorenzToolTipEvent) {
if (!LorenzUtils.inSkyBlock) return
if (!config.coloredClassLevel) return
- if (event.toolTip == null) return
val chestName = InventoryUtils.openInventoryName()
if (chestName != "Party Finder") return