don't do anything if formula calculates 0
This should fix Better Buoyancy compatibilty if the enabled formula does calculate 0
This commit is contained in:
parent
2b5c2711fe
commit
ef78673561
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ local function sinkInWater(e)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- finally add down-pull from configured formula to tes3.mobilePlayer.velocity.z to simulate being pulled down
|
-- finally add down-pull from configured formula to tes3.mobilePlayer.velocity.z to simulate being pulled down
|
||||||
mobile.velocity.z = -downPull
|
if downPull ~= 0 then mobile.velocity.z = -downPull end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function onInitialized()
|
local function onInitialized()
|
||||||
|
|
Loading…
Add table
Reference in a new issue