#198 Fix a crash, step 21

This commit is contained in:
kay27 2022-02-14 06:44:41 +04:00
parent 403528e542
commit adfa83c34c
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ function mcl_player.player_get_preview(player)
end
function mcl_player.get_player_formspec_model(player, x, y, w, h, fsname)
if not mcl_util then return end
if not mcl_util.is_player(player) then return end
local name = player:get_player_name()
local model = player_model[name]
local anim = models[model].animations[player_anim[name]]