From 11c55cce297a2dcba85d60b0bc9962a937999702 Mon Sep 17 00:00:00 2001 From: kay27 Date: Thu, 17 Feb 2022 05:25:05 +0400 Subject: [PATCH] #198 Fix a crash, step 26 --- mods/HUD/mcl_experience/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/HUD/mcl_experience/init.lua b/mods/HUD/mcl_experience/init.lua index aea805fa2..2b6d4d5bf 100644 --- a/mods/HUD/mcl_experience/init.lua +++ b/mods/HUD/mcl_experience/init.lua @@ -157,6 +157,7 @@ function mcl_experience.throw_xp(pos, total_xp) end function mcl_experience.update(player) + if not mcl_util or not mcl_util.is_player(player) then return end local xp = mcl_experience.get_xp(player) local cache = caches[player]