From 29bdb00b7f22cf3de58fda23459b65740199e278 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 12 Jan 2025 14:18:12 +0100 Subject: fix: Tooltips of other fabric mods not being displayed in REI --- .../rei/java/moe/nea/firmament/compat/rei/NEUItemEntryRenderer.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compat/rei/java') diff --git a/src/compat/rei/java/moe/nea/firmament/compat/rei/NEUItemEntryRenderer.kt b/src/compat/rei/java/moe/nea/firmament/compat/rei/NEUItemEntryRenderer.kt index a7b4c99..5430ea8 100644 --- a/src/compat/rei/java/moe/nea/firmament/compat/rei/NEUItemEntryRenderer.kt +++ b/src/compat/rei/java/moe/nea/firmament/compat/rei/NEUItemEntryRenderer.kt @@ -47,7 +47,7 @@ object NEUItemEntryRenderer : EntryRenderer { } val minecraft = MinecraftClient.getInstance() - var canUseVanillaTooltipEvents = false + var canUseVanillaTooltipEvents = true override fun getTooltip(entry: EntryStack, tooltipContext: TooltipContext): Tooltip? { val stack = entry.value.asImmutableItemStack() @@ -60,6 +60,7 @@ object NEUItemEntryRenderer : EntryRenderer { stack, tooltipContext.vanillaContext(), TooltipType.BASIC, lore ) } catch (ex: Exception) { + canUseVanillaTooltipEvents = false ErrorUtil.softError("Failed to use vanilla tooltips", ex) } } else { -- cgit