From b71c4d32ecbd2106a63052461d3534abb15deb58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 14 Aug 2021 13:41:25 -0700 Subject: [PATCH] don't need to set downPull to 0 because it was 0 --- MWSE/mods/celediel/ASinkingFeeling/main.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/MWSE/mods/celediel/ASinkingFeeling/main.lua b/MWSE/mods/celediel/ASinkingFeeling/main.lua index 07c0bb8..7059644 100644 --- a/MWSE/mods/celediel/ASinkingFeeling/main.lua +++ b/MWSE/mods/celediel/ASinkingFeeling/main.lua @@ -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)