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