fix pos being to big

This commit is contained in:
DS-Minetest 2017-07-18 14:35:07 +02:00
parent 289d0e623c
commit f828542b42
1 changed files with 5 additions and 0 deletions

View File

@ -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