Fix crashing on HUD removal
This commit is contained in:
parent
1424222a69
commit
0698673c28
@ -138,9 +138,15 @@ minetest.register_globalstep (function(dtime)
|
||||
player:set_physics_override({
|
||||
speed = 1,
|
||||
})
|
||||
if p.hud.ui then
|
||||
player:hud_remove(p.hud.ui)
|
||||
end
|
||||
if p.hud.icon then
|
||||
player:hud_remove(p.hud.icon)
|
||||
end
|
||||
if p.hud.time then
|
||||
player:hud_remove(p.hud.time)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user