forked from Wuzzy/realtest_mt5
Fix potential minetest.after crash in hud mod
This commit is contained in:
parent
537a6f7078
commit
392c89b88d
|
@ -15,8 +15,10 @@ local function costum_hud(player)
|
|||
end
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
minetest.after(0.5, function()
|
||||
minetest.after(0.5, function(player)
|
||||
if player and player:is_player() then
|
||||
hide_builtin(player)
|
||||
costum_hud(player)
|
||||
end)
|
||||
end
|
||||
end, player)
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue