From d176cb5419d31d599d21185d71d87cd3b25ade1f Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Sun, 27 Jun 2021 14:40:57 -0700 Subject: [PATCH] revised comments --- worldeditadditions_commands/commands/selectors/smake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions_commands/commands/selectors/smake.lua b/worldeditadditions_commands/commands/selectors/smake.lua index 6dcab3f..dff331c 100644 --- a/worldeditadditions_commands/commands/selectors/smake.lua +++ b/worldeditadditions_commands/commands/selectors/smake.lua @@ -73,7 +73,7 @@ worldedit.register_command("smake", { local delta = vector.subtract(p2,p1) -- local delta equation: Vd(a) = V2(a) - V1(a) local _tl = #targ -- Get targ length as a variable incase mode is "average"/"avg" local targ = wea.tocharset(targ) -- Break up targ string into set table - local _m = 0 -- _m is the container to hold the max, min or average (depending on the mode) of the axes in targ targ + local _m = 0 -- _m is the container to hold the max, min or average (depending on the mode) of the axes in targ -- set _m to the max, min or mean of the target axes depending on mode or base if it exists if base then _m = delta[base] @@ -99,7 +99,7 @@ worldedit.register_command("smake", { elseif mode == "shrink" and abs > 0 then int = abs - 1 else int = abs + 1 end end - if neg then int = int * -1 end + if neg then int = int * -1 end -- Ensure correct facing direction return int end elseif oper == "odd" then