Skip to content

Commit

Permalink
Fix underwater detection
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyqubit committed Jun 2, 2023
1 parent 59d892e commit 6de49d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 00 Core/MWSE/mods/tew/AURA/Misc/underwater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ local function underwaterReset(pitch)
end
end

local underwaterSound = tes3.getSound("Underwater")
local splashVol = config.volumes.misc.splashVol / 100
local function underwaterCheck()
if tes3.mobilePlayer.underwater or (underwaterSound and underwaterSound:isLooping()) then
if tes3.mobilePlayer.underwater then
if not cellData.playerUnderwater then
cellData.playerUnderwater = true
debugLog("Player underwater.")
Expand Down

0 comments on commit 6de49d1

Please sign in to comment.
  翻译: