From e811090527d060ec52a1a426f2d72889283ae510 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:03:21 -0700 Subject: [PATCH] Position statements for command returns --- worldeditadditions_commands/commands/selectors/scentre.lua | 2 +- worldeditadditions_commands/commands/selectors/sgrow.lua | 2 +- worldeditadditions_commands/commands/selectors/smake.lua | 2 +- worldeditadditions_commands/commands/selectors/srel.lua | 2 +- worldeditadditions_commands/commands/selectors/sshift.lua | 2 +- worldeditadditions_commands/commands/selectors/sshrink.lua | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/worldeditadditions_commands/commands/selectors/scentre.lua b/worldeditadditions_commands/commands/selectors/scentre.lua index 1d88b75..ec8c31e 100644 --- a/worldeditadditions_commands/commands/selectors/scentre.lua +++ b/worldeditadditions_commands/commands/selectors/scentre.lua @@ -26,7 +26,7 @@ worldeditadditions_core.register_command("scentre", { wea_c.pos.set_all(name, {pos1, pos2}) - return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 + return true, "Position 1 to "..pos1..", Position 2 to "..pos2 end, }) diff --git a/worldeditadditions_commands/commands/selectors/sgrow.lua b/worldeditadditions_commands/commands/selectors/sgrow.lua index bf50e80..9ede412 100644 --- a/worldeditadditions_commands/commands/selectors/sgrow.lua +++ b/worldeditadditions_commands/commands/selectors/sgrow.lua @@ -34,7 +34,7 @@ worldeditadditions_core.register_command("sgrow", { pos1, pos2 = pos1:add(min), pos2:add(max) wea_c.pos.set_all(name, {pos1, pos2}) - return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 + return true, "Position 1 to "..pos1..", Position 2 to "..pos2 end, }) diff --git a/worldeditadditions_commands/commands/selectors/smake.lua b/worldeditadditions_commands/commands/selectors/smake.lua index 1a1d1ef..78309bb 100644 --- a/worldeditadditions_commands/commands/selectors/smake.lua +++ b/worldeditadditions_commands/commands/selectors/smake.lua @@ -126,6 +126,6 @@ worldeditadditions_core.register_command("smake", { for k,_ in pairs(targ) do delta[k] = eval(delta[k]) end wea_c.pos.set(name, 2, pos1 + delta) - return true, "Pos2 set to "..pos2 + return true, "Position 2 to "..pos2 end }) diff --git a/worldeditadditions_commands/commands/selectors/srel.lua b/worldeditadditions_commands/commands/selectors/srel.lua index 1d577c0..b0af141 100644 --- a/worldeditadditions_commands/commands/selectors/srel.lua +++ b/worldeditadditions_commands/commands/selectors/srel.lua @@ -29,7 +29,7 @@ worldeditadditions_core.register_command("srel", { local pos2 = pos1:add(vec) wea_c.pos.set_all(name, {pos1, pos2}) - return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 + return true, "Position 1 to "..pos1..", Position 2 to "..pos2 end, }) diff --git a/worldeditadditions_commands/commands/selectors/sshift.lua b/worldeditadditions_commands/commands/selectors/sshift.lua index 79c8d44..c115a65 100644 --- a/worldeditadditions_commands/commands/selectors/sshift.lua +++ b/worldeditadditions_commands/commands/selectors/sshift.lua @@ -26,7 +26,7 @@ worldeditadditions_core.register_command("sshift", { local pos2 = vec:add(wea_c.pos.get(name, 2)) wea_c.pos.set_all(name, {pos1, pos2}) - return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 + return true, "Position 1 to "..pos1..", Position 2 to "..pos2 end, }) diff --git a/worldeditadditions_commands/commands/selectors/sshrink.lua b/worldeditadditions_commands/commands/selectors/sshrink.lua index cd69831..e46ec67 100644 --- a/worldeditadditions_commands/commands/selectors/sshrink.lua +++ b/worldeditadditions_commands/commands/selectors/sshrink.lua @@ -34,7 +34,7 @@ worldeditadditions_core.register_command("sshrink", { pos1, pos2 = pos1:add(max), pos2:add(min) wea_c.pos.set_all(name, {pos1, pos2}) - return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 + return true, "Position 1 to "..pos1..", Position 2 to "..pos2 end, })