diff --git a/worldeditadditions/lib/rotate.lua b/worldeditadditions/lib/rotate.lua index 8fb3f68..b028579 100644 --- a/worldeditadditions/lib/rotate.lua +++ b/worldeditadditions/lib/rotate.lua @@ -136,6 +136,8 @@ function worldeditadditions.rotate(pos1, pos2, origin, rotlist) --- 8: Return return true, { - count_rotated = count_rotated + count_rotated = count_rotated, + pos1_dstvm = pos1_dstvm, + pos2_dstvm = pos2_dstvm } end \ No newline at end of file diff --git a/worldeditadditions_commands/commands/rotate.lua b/worldeditadditions_commands/commands/rotate.lua index e617596..6489dac 100644 --- a/worldeditadditions_commands/commands/rotate.lua +++ b/worldeditadditions_commands/commands/rotate.lua @@ -118,6 +118,9 @@ worldeditadditions_core.register_command("rotate+", { ) if not success then return success, stats end + + wea_c.pos.set1(name, stats.pos1_dstvm + Vector3.new(1, 1, 1)) + wea_c.pos.set2(name, stats.pos2_dstvm - Vector3.new(1, 1, 1)) -- TODO: Adjust the defined area to match the target here? Maybe make this optional somehow given the target may or may nor be axis-aligned ------------------------------------------------- local time_taken = wea_c.get_ms_time() - start_time