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:
Lilian Jónsdóttir 2021-08-08 20:01:33 -07:00
parent 2b5c2711fe
commit ef78673561

View file

@ -79,7 +79,7 @@ local function sinkInWater(e)
end
-- 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
local function onInitialized()