forked from minetest-mods/areas
Add canInteractInArea
This commit is contained in:
2
pos.lua
2
pos.lua
@ -168,7 +168,7 @@ end)
|
||||
|
||||
-- Modifies positions `pos1` and `pos2` so that each component of `pos1`
|
||||
-- is less than or equal to its corresponding component of `pos2`,
|
||||
-- returning two new positions
|
||||
-- returning the two positions.
|
||||
function areas:sortPos(pos1, pos2)
|
||||
if pos1.x > pos2.x then
|
||||
pos2.x, pos1.x = pos1.x, pos2.x
|
||||
|
Reference in New Issue
Block a user