Fix pos big (#1)

* fix pos being to big

* improve

* make the change instead in hud.lua
This commit is contained in:
sofar 2019-04-01 20:24:59 -07:00 committed by GitHub
parent 289d0e623c
commit 2637876555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,9 @@ minetest.register_globalstep(function(dtime)
for _, player in pairs(minetest.get_connected_players()) do
local name = player:get_player_name()
local pos = vector.round(player:getpos())
pos = vector.apply(pos, function(p)
return math.max(math.min(p, 2147483), -2147483)
end)
local areaStrings = {}
for id, area in pairs(areas:getAreasAtPos(pos)) do