mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
Bugfix: don't +/1 (1, 1, 1) twice in //rotate
This commit is contained in:
parent
54c66e0dc9
commit
dc39dbff08
1 changed files with 1 additions and 4 deletions
|
@ -74,10 +74,7 @@ local function find_rotated_vm(pos1, pos2, origin, rotlist)
|
||||||
end, corners_rot[1]:clone())
|
end, corners_rot[1]:clone())
|
||||||
|
|
||||||
print("DEBUG:find_rotated_vm pos1_dstvm", pos1_dstvm, "pos2_dstvm", pos2_dstvm)
|
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
|
return pos1_dstvm, pos2_dstvm
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue