From f51ed36f9ed803889f56c402ce4b497a07712c3c Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 12 Sep 2024 18:30:21 -0700 Subject: [PATCH] some optimization --- worldeditadditions_commands/commands/selectors/sgrow.lua | 1 - worldeditadditions_commands/commands/selectors/srel.lua | 1 - worldeditadditions_commands/commands/selectors/sshrink.lua | 1 - 3 files changed, 3 deletions(-) diff --git a/worldeditadditions_commands/commands/selectors/sgrow.lua b/worldeditadditions_commands/commands/selectors/sgrow.lua index 5c15570..f84a058 100644 --- a/worldeditadditions_commands/commands/selectors/sgrow.lua +++ b/worldeditadditions_commands/commands/selectors/sgrow.lua @@ -31,7 +31,6 @@ worldeditadditions_core.register_command("sgrow", { pos1, pos2 = pos1:add(min), pos2:add(max) - wea_c.pos.clear(name) wea_c.pos.set_all(name, {pos1, pos2}) return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 end, diff --git a/worldeditadditions_commands/commands/selectors/srel.lua b/worldeditadditions_commands/commands/selectors/srel.lua index 3c5eb59..de2e176 100644 --- a/worldeditadditions_commands/commands/selectors/srel.lua +++ b/worldeditadditions_commands/commands/selectors/srel.lua @@ -28,7 +28,6 @@ worldeditadditions_core.register_command("srel", { local pos1 = wea_c.pos.get(name, 1) local pos2 = pos1:add(vec) - wea_c.pos.clear(name) wea_c.pos.set_all(name, {pos1, pos2}) return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 end, diff --git a/worldeditadditions_commands/commands/selectors/sshrink.lua b/worldeditadditions_commands/commands/selectors/sshrink.lua index 6de886a..db27973 100644 --- a/worldeditadditions_commands/commands/selectors/sshrink.lua +++ b/worldeditadditions_commands/commands/selectors/sshrink.lua @@ -31,7 +31,6 @@ worldeditadditions_core.register_command("sshrink", { pos1, pos2 = pos1:add(max), pos2:add(min) - wea_c.pos.clear(name) wea_c.pos.set_all(name, {pos1, pos2}) return true, "Pos1 set to "..pos1..", Pos2 set to "..pos2 end,