aboutsummaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-12 14:18:12 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-12 14:18:12 +0100
commit29bdb00b7f22cf3de58fda23459b65740199e278 (patch)
tree550d081eccb72c144563b0aa5b243e944a84643f /src/compat
parentecc09597692421d677be9745778554b57f08488b (diff)
downloadFirmament-29bdb00b7f22cf3de58fda23459b65740199e278.tar.gz
Firmament-29bdb00b7f22cf3de58fda23459b65740199e278.tar.bz2
Firmament-29bdb00b7f22cf3de58fda23459b65740199e278.zip
fix: Tooltips of other fabric mods not being displayed in REI
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/rei/java/moe/nea/firmament/compat/rei/NEUItemEntryRenderer.kt3
1 files changed, 2 insertions, 1 deletions
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<SBItemStack> {
}
val minecraft = MinecraftClient.getInstance()
- var canUseVanillaTooltipEvents = false
+ var canUseVanillaTooltipEvents = true
override fun getTooltip(entry: EntryStack<SBItemStack>, tooltipContext: TooltipContext): Tooltip? {
val stack = entry.value.asImmutableItemStack()
@@ -60,6 +60,7 @@ object NEUItemEntryRenderer : EntryRenderer<SBItemStack> {
stack, tooltipContext.vanillaContext(), TooltipType.BASIC, lore
)
} catch (ex: Exception) {
+ canUseVanillaTooltipEvents = false
ErrorUtil.softError("Failed to use vanilla tooltips", ex)
}
} else {