From 28f17b10048e0d67f78d3547a2c6e84def797419 Mon Sep 17 00:00:00 2001 From: kay27 Date: Mon, 24 Jan 2022 02:51:19 +0400 Subject: [PATCH] Fix mcl_playerinfo --- mods/PLAYER/mcl_playerinfo/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/PLAYER/mcl_playerinfo/init.lua b/mods/PLAYER/mcl_playerinfo/init.lua index 9c5d1433f..2896c15d0 100644 --- a/mods/PLAYER/mcl_playerinfo/init.lua +++ b/mods/PLAYER/mcl_playerinfo/init.lua @@ -63,6 +63,10 @@ minetest.register_globalstep(function(dtime) -- what is around me? local node_stand, node_stand_below, node_head, node_feet = get_player_nodes(pos) + + if not mcl_playerinfo[name] then + mcl_playerinfo[name] = {} + end mcl_playerinfo[name].node_stand = node_stand mcl_playerinfo[name].node_stand_below = node_stand_below mcl_playerinfo[name].node_head = node_head