fix pos being to big
This commit is contained in:
parent
289d0e623c
commit
f828542b42
5
api.lua
5
api.lua
|
@ -18,6 +18,11 @@ end
|
|||
function areas:getAreasAtPos(pos)
|
||||
local res = {}
|
||||
|
||||
if math.abs(pos.x) > 2147483 or math.abs(pos.y) > 2147483 or
|
||||
math.abs(pos.z) > 2147483 then
|
||||
return res
|
||||
end
|
||||
|
||||
if self.store then
|
||||
local a = self.store:get_areas_for_pos(pos, false, true)
|
||||
for store_id, store_area in pairs(a) do
|
||||
|
|
Loading…
Reference in New Issue