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 downPull = 0
|
||||||
local debugStr = ""
|
local debugStr = ""
|
||||||
|
|
||||||
-- don't calculate if disabled
|
-- calculate the down-pull with the configured formula if enabled
|
||||||
if not config.enabled then
|
if config.enabled then
|
||||||
downPull = 0
|
|
||||||
-- calculate the down-pull with the configured formula
|
|
||||||
else
|
|
||||||
for _, t in ipairs(common.modes) do
|
for _, t in ipairs(common.modes) do
|
||||||
if t.mode == config.mode then
|
if t.mode == config.mode then
|
||||||
downPull, debugStr = formulas[t.mode](actor, mobile, ref)
|
downPull, debugStr = formulas[t.mode](actor, mobile, ref)
|
||||||
|
|
Loading…
Add table
Reference in a new issue