make the change instead in hud.lua

This commit is contained in:
DS-Minetest 2017-08-02 13:40:50 +02:00
parent 023cb81f9e
commit 025292f850
2 changed files with 3 additions and 4 deletions

View File

@ -18,10 +18,6 @@ end
function areas:getAreasAtPos(pos)
local res = {}
pos = vector.apply(pos, function(p)
return math.max(math.min(p, 2147483), -2147483)
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

View File

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