mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02: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
@ -75,10 +75,6 @@ worldedit.register_command("subdivide", {
|
|||||||
local time_total = worldeditadditions.get_ms_time()
|
local time_total = worldeditadditions.get_ms_time()
|
||||||
|
|
||||||
local pos1, pos2 = worldedit.sort_pos(worldedit.pos1[name], worldedit.pos2[name])
|
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 volume = worldedit.volume(pos1, pos2)
|
||||||
|
|
||||||
local cmd = worldedit.registered_commands[cmd_name]
|
local cmd = worldedit.registered_commands[cmd_name]
|
||||||
|
Loading…
Reference in New Issue
Block a user