diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-10 22:05:11 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-10 22:05:11 +0200 |
commit | 4d89d1b3b1ff285db03ea244be5c66391d1b82df (patch) | |
tree | 7f7d56b2d241476401300b2aed288d3aa3d0fc71 /src/main/java/at/hannibal2/skyhanni/mixins/hooks | |
parent | d1f1465b8ef122085dd78ef5794f31ea359b7cb4 (diff) | |
download | skyhanni-4d89d1b3b1ff285db03ea244be5c66391d1b82df.tar.gz skyhanni-4d89d1b3b1ff285db03ea244be5c66391d1b82df.tar.bz2 skyhanni-4d89d1b3b1ff285db03ea244be5c66391d1b82df.zip |
Created RenderItemTooltipEvent and used it in EstimatedItemValue as a workaround for a bug caused in ct or hu3
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt new file mode 100644 index 000000000..6ed537234 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/GuiScreenHook.kt @@ -0,0 +1,8 @@ +package at.hannibal2.skyhanni.mixins.hooks + +import at.hannibal2.skyhanni.events.RenderItemTooltipEvent +import net.minecraft.item.ItemStack + +fun renderToolTip(stack: ItemStack) { + RenderItemTooltipEvent(stack).postAndCatch() +}
\ No newline at end of file |