fix crash through wrong variable use
This commit is contained in:
parent
b74cfc0142
commit
2091c6ac72
|
@ -21,8 +21,8 @@ minetest.register_on_joinplayer(function(player)
|
|||
end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
if multi_map.hud.enabled and player_huds[player:get_player_name()] then
|
||||
player_huds[player:get_player_name()] = nil
|
||||
if multi_map.hud.enabled and saved_huds[player:get_player_name()] then
|
||||
saved_huds[player:get_player_name()] = nil
|
||||
end
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in New Issue