Skip to content

Commit

Permalink
Fix teawarmer filter when Midnight Oil isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaakma committed Aug 26, 2024
1 parent 4f91bd4 commit 5c4fd60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ end
---@field blend number The amount of blending between the ground and decal texture
---@field texturingProperty niTexturingProperty
---@field object any

---@return Ashfall.GroundTextureInfo|nil
function this.getGroundTextureInfo(e)
local rayhit = tes3.rayTest({
Expand Down
4 changes: 2 additions & 2 deletions Data Files/MWSE/mods/mer/ashfall/items/teaWarmer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ local function itemIsCandle(object)
return object.id:lower():find("candle") ~= nil
end
if midnightOilInterop then
if object.id:lower() == "mer_lntrn_candle" then
end
local candleIds = midnightOilInterop.getCandleIds()
return candleIds[object.id:lower()] ~= nil
end

return false
end

local function playerHasCandle()
Expand Down

0 comments on commit 5c4fd60

Please sign in to comment.