Bugfix: don't +/1 (1, 1, 1) twice in //rotate

This commit is contained in:
Starbeamrainbowlabs 2023-12-16 00:37:27 +00:00
parent 54c66e0dc9
commit dc39dbff08
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -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