diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt b/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt index 6b5e3fe..ba99b30 100644 --- a/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt +++ b/src/main/kotlin/moe/nea/firmament/rei/NEUItemEntryRenderer.kt @@ -47,13 +47,13 @@ object NEUItemEntryRenderer : EntryRenderer<SBItemStack>, BatchedEntryRenderer<S val minecraft = MinecraftClient.getInstance() override fun getTooltip(entry: EntryStack<SBItemStack>, tooltipContext: TooltipContext): Tooltip? { - return Tooltip.create( - entry.asItemEntry().value.getTooltip( - Item.TooltipContext.DEFAULT, - null, - TooltipType.BASIC - ) + val stack = entry.value.asImmutableItemStack() + val lore = stack.getTooltip( + Item.TooltipContext.DEFAULT, + null, + TooltipType.BASIC ) + return Tooltip.create(lore) } override fun getExtraData(entry: EntryStack<SBItemStack>): BakedModel { |