diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-11 10:24:35 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-11 10:24:35 +0200 |
commit | cbd64656802075dd31964853723ad8dac8555062 (patch) | |
tree | 70690b85c5e33d2da3505343c76a02ac0fc42ea6 /src/main/java | |
parent | 3710475c1df8bcecabd3b58941646c635c137315 (diff) | |
download | skyhanni-cbd64656802075dd31964853723ad8dac8555062.tar.gz skyhanni-cbd64656802075dd31964853723ad8dac8555062.tar.bz2 skyhanni-cbd64656802075dd31964853723ad8dac8555062.zip |
prevent other mods to display stuff into the item lore when the item is blocked from the hide not clickable feature
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/lorenz/mod/HideNotClickableItems.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/lorenz/mod/HideNotClickableItems.kt b/src/main/java/at/lorenz/mod/HideNotClickableItems.kt index 107684398..52706a6f4 100644 --- a/src/main/java/at/lorenz/mod/HideNotClickableItems.kt +++ b/src/main/java/at/lorenz/mod/HideNotClickableItems.kt @@ -15,6 +15,7 @@ import net.minecraft.client.renderer.GlStateManager import net.minecraft.inventory.ContainerChest import net.minecraft.item.ItemStack import net.minecraftforge.event.entity.player.ItemTooltipEvent +import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import org.lwjgl.opengl.GL11 @@ -71,7 +72,7 @@ class HideNotClickableItems { } } - @SubscribeEvent + @SubscribeEvent(priority = EventPriority.LOWEST) fun onTooltip(event: ItemTooltipEvent) { if (isDisabled()) return if (event.toolTip == null) return |