From 32b4a84a4ada586ff505e966ef3e0955edc435c0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 27 Jun 2020 02:05:31 +0100 Subject: [PATCH] //subdivide: no no no. that can't be the problem because worldedit.sort_pos() implicitly clones --- worldeditadditions_commands/commands/subdivide.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/worldeditadditions_commands/commands/subdivide.lua b/worldeditadditions_commands/commands/subdivide.lua index 266b04d..a67f5e0 100644 --- a/worldeditadditions_commands/commands/subdivide.lua +++ b/worldeditadditions_commands/commands/subdivide.lua @@ -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]