Fix pos big (#1)
* fix pos being to big * improve * make the change instead in hud.lua
This commit is contained in:
parent
289d0e623c
commit
2637876555
3
hud.lua
3
hud.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user