Skip to content

Commit

Permalink
Bugfix: don't +/1 (1, 1, 1) twice in //rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl committed Dec 16, 2023
1 parent 54c66e0 commit dc39dbf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions worldeditadditions_core/utils/rotation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc39dbf

Please sign in to comment.