Fixed crash problem
This commit is contained in:
parent
cacd0da431
commit
307b4048ac
|
@ -8,6 +8,9 @@ end)
|
||||||
function advtrains.set_trainhud(name, text)
|
function advtrains.set_trainhud(name, text)
|
||||||
local hud = advtrains.hud[name]
|
local hud = advtrains.hud[name]
|
||||||
local player=minetest.get_player_by_name(name)
|
local player=minetest.get_player_by_name(name)
|
||||||
|
if not player then
|
||||||
|
return
|
||||||
|
end
|
||||||
if not hud then
|
if not hud then
|
||||||
hud = {}
|
hud = {}
|
||||||
advtrains.hud[name] = hud
|
advtrains.hud[name] = hud
|
||||||
|
|
Loading…
Reference in New Issue