mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-25 18:20:39 +01:00
Revert "Fix possible hud vector error"
This was fixed upstream in builtin.
This reverts commit 1a8efa9916
.
This commit is contained in:
parent
f096fb4dbb
commit
38dc65eb8e
5
hud.lua
5
hud.lua
@ -5,9 +5,7 @@ areas.hud = {}
|
|||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local pos = player:getpos()
|
local pos = vector.round(player:getpos())
|
||||||
if pos then
|
|
||||||
pos = vector.round(pos)
|
|
||||||
local owners = areas:getNodeOwners(pos)
|
local owners = areas:getNodeOwners(pos)
|
||||||
local ownerString = table.concat(owners, ", ")
|
local ownerString = table.concat(owners, ", ")
|
||||||
if not areas.hud[name] then
|
if not areas.hud[name] then
|
||||||
@ -32,7 +30,6 @@ minetest.register_globalstep(function(dtime)
|
|||||||
areas.hud[name].oldOwners = ownerString
|
areas.hud[name].oldOwners = ownerString
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
|
Loading…
Reference in New Issue
Block a user