diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 13:23:09 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 13:23:09 +0100 |
commit | 22f6efe16fb49db123d10cf0117a85feea197ce1 (patch) | |
tree | b6392c2617c6f443fde225e325f11ed34f77344e /src/main/java/at/hannibal2/skyhanni/features/rift | |
parent | 6aaf8e71d1264b7e2205bce0f270a5adc6cda0ac (diff) | |
download | skyhanni-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/rift')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt index 47c002c92..256349220 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt @@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzTickEvent +import at.hannibal2.skyhanni.events.LorenzToolTipEvent import at.hannibal2.skyhanni.features.rift.RiftAPI import at.hannibal2.skyhanni.features.rift.RiftAPI.motesNpcPrice import at.hannibal2.skyhanni.utils.InventoryUtils @@ -22,7 +23,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.highlight import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.renderables.Renderable -import net.minecraftforge.event.entity.player.ItemTooltipEvent import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -71,10 +71,10 @@ class ShowMotesNpcSellPrice { } @SubscribeEvent - fun onItemTooltipLow(event: ItemTooltipEvent) { + fun onItemTooltipLow(event: LorenzToolTipEvent) { if (!isShowPriceEnabled()) return - val itemStack = event.itemStack ?: return + val itemStack = event.itemStack val baseMotes = itemStack.motesNpcPrice() ?: return val burgerStacks = config.burgerStacks |