From dc39dbff083032af899bb393f3196e30b622c2b6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 16 Dec 2023 00:37:27 +0000 Subject: [PATCH] Bugfix: don't +/1 (1, 1, 1) twice in //rotate --- worldeditadditions_core/utils/rotation.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/worldeditadditions_core/utils/rotation.lua b/worldeditadditions_core/utils/rotation.lua index 450ae39..084048e 100644 --- a/worldeditadditions_core/utils/rotation.lua +++ b/worldeditadditions_core/utils/rotation.lua @@ -74,10 +74,7 @@ local function find_rotated_vm(pos1, pos2, origin, rotlist) end, corners_rot[1]:clone()) print("DEBUG:find_rotated_vm pos1_dstvm", pos1_dstvm, "pos2_dstvm", pos2_dstvm) - - pos1_dstvm = pos1_dstvm:floor() - Vector3.new(1, 1, 1) - pos2_dstvm = pos2_dstvm:ceil() + Vector3.new(1, 1, 1) - + return pos1_dstvm, pos2_dstvm end