Another fix
This commit is contained in:
parent
1b71a85f53
commit
a0c0a8bad7
4
init.lua
4
init.lua
|
@ -2991,6 +2991,7 @@ local function init_waypoints(player)
|
||||||
data.waypoints = data.waypoints or {}
|
data.waypoints = data.waypoints or {}
|
||||||
|
|
||||||
for _, v in ipairs(data.waypoints) do
|
for _, v in ipairs(data.waypoints) do
|
||||||
|
if not v.hide then
|
||||||
local id = player:hud_add {
|
local id = player:hud_add {
|
||||||
hud_elem_type = "waypoint",
|
hud_elem_type = "waypoint",
|
||||||
name = v.name,
|
name = v.name,
|
||||||
|
@ -3001,9 +3002,6 @@ local function init_waypoints(player)
|
||||||
}
|
}
|
||||||
|
|
||||||
v.id = id
|
v.id = id
|
||||||
|
|
||||||
if v.hide then
|
|
||||||
player:hud_remove(id)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Ŝarĝante…
Reference in New Issue