mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
//subdivide: no no no. that can't be the problem because worldedit.sort_pos() implicitly clones
This commit is contained in:
parent
ce6ed01b36
commit
32b4a84a4a
1 changed files with 0 additions and 4 deletions
|
@ -75,10 +75,6 @@ worldedit.register_command("subdivide", {
|
|||
local time_total = worldeditadditions.get_ms_time()
|
||||
|
||||
local pos1, pos2 = worldedit.sort_pos(worldedit.pos1[name], worldedit.pos2[name])
|
||||
pos1 = worldeditadditions.shallowcopy(pos1)
|
||||
pos2 = worldeditadditions.shallowcopy(pos2)
|
||||
-- TODO: Need to clone pos1 & pos2 here, because pass-by-reference
|
||||
-- TODO: We should clone further down too, just in case
|
||||
local volume = worldedit.volume(pos1, pos2)
|
||||
|
||||
local cmd = worldedit.registered_commands[cmd_name]
|
||||
|
|
Loading…
Reference in a new issue