don't need to set downPull to 0 because it was 0
This commit is contained in:
parent
201984761a
commit
b71c4d32ec
1 changed files with 2 additions and 5 deletions
|
@ -135,11 +135,8 @@ local function sinkInWater(e)
|
|||
local downPull = 0
|
||||
local debugStr = ""
|
||||
|
||||
-- don't calculate if disabled
|
||||
if not config.enabled then
|
||||
downPull = 0
|
||||
-- calculate the down-pull with the configured formula
|
||||
else
|
||||
-- calculate the down-pull with the configured formula if enabled
|
||||
if config.enabled then
|
||||
for _, t in ipairs(common.modes) do
|
||||
if t.mode == config.mode then
|
||||
downPull, debugStr = formulas[t.mode](actor, mobile, ref)
|
||||
|
|
Loading…
Add table
Reference in a new issue