Fix bug in mcl_player.player.get_preview

This commit is contained in:
Wuzzy 2019-03-06 07:15:53 +01:00
parent 3ca01c3149
commit 0b9c0d177c

View File

@ -81,7 +81,7 @@ end
function mcl_player.player_get_preview(player)
local preview = player:get_meta():get_string("mcl_player:preview")
if not preview then
if preview == nil or preview == "" then
return "player.png"
else
return preview