From cbd64656802075dd31964853723ad8dac8555062 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Mon, 11 Jul 2022 10:24:35 +0200 Subject: prevent other mods to display stuff into the item lore when the item is blocked from the hide not clickable feature --- src/main/java/at/lorenz/mod/HideNotClickableItems.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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 -- cgit