mirror of
https://github.com/minetest-mods/areas.git
synced 2025-07-07 02:20:22 +02:00
fix pos being to big
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user