mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
some optimization
This commit is contained in:
parent
981bdc2b76
commit
f51ed36f9e
3 changed files with 0 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue