Skip to content

Commit

Permalink
Fix itemTooltip bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaakma committed Jun 14, 2024
1 parent 82c8942 commit 3fcb47e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Data Files/MWSE/mods/mer/ashfall/ui/itemTooltips.lua
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,15 @@ function itemTooltips.addItemTooltips(e)
local liquidContainer
if e.reference then
liquidContainer = LiquidContainer.createFromReference(e.reference)
if not e.item then
e.item = e.reference.object
end
if not e.itemData then
e.itemData = e.reference.itemData
end
else
liquidContainer = LiquidContainer.createFromInventory(e.item, e.itemData)
end
if not e.item then
e.item = e.reference.object
end
if not e.itemData then
e.itemData = e.reference.itemData
end

local menu = tes3ui.findMenu("MenuInventory")
if liquidContainer and tes3ui.menuMode() and menu and menu.visible then
Expand Down

0 comments on commit 3fcb47e

Please sign in to comment.