From adfa83c34c3a5b7333cf56e8f3fa50d8d545b54f Mon Sep 17 00:00:00 2001 From: kay27 Date: Mon, 14 Feb 2022 06:44:41 +0400 Subject: [PATCH] #198 Fix a crash, step 21 --- mods/PLAYER/mcl_player/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/PLAYER/mcl_player/init.lua b/mods/PLAYER/mcl_player/init.lua index 69f126dcf..9d910a89a 100644 --- a/mods/PLAYER/mcl_player/init.lua +++ b/mods/PLAYER/mcl_player/init.lua @@ -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]]