fix posLimit(pos) to process and return a position table

This commit is contained in:
Vanessa Dannenberg 2019-04-02 17:47:51 -04:00 committed by sofar
parent 630bdefd98
commit 9508a004d0

@ -130,7 +130,11 @@ function areas:getPos(playerName)
end
local function posLimit(pos)
return math.max(math.min(p, 31000), -31000)
return {
x = math.max(math.min(pos.x, 31000), -31000)
y = math.max(math.min(pos.y, 31000), -31000)
z = math.max(math.min(pos.z, 31000), -31000)
}
end
function areas:setPos1(playerName, pos)