mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-11 08:23:19 +01:00
Bugfix: don't +/1 (1, 1, 1) twice in //rotate
This commit is contained in:
parent
54c66e0dc9
commit
dc39dbff08
@ -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 New Issue
Block a user