Tente la correction d'un crash

This commit is contained in:
sys4-fr 2019-03-02 21:08:02 +01:00
parent 54db6ce0c0
commit cae2c1ee3b

View File

@ -122,6 +122,9 @@ function awards.unlock(name, award)
end
else
local player = minetest.get_player_by_name(name)
if not (player and player.is_player and player:is_player()) then
return
end
local one = player:hud_add({
hud_elem_type = "image",
name = "award_bg",