#198 Fix a crash, step 7

This commit is contained in:
kay27 2022-02-14 01:48:09 +00:00
parent 3984c72bbc
commit 52e2e2506b
2 changed files with 7 additions and 4 deletions

View File

@ -1093,9 +1093,13 @@ if progressive_mode then
mcl_craftguide.add_recipe_filter("Default progressive filter", progressive_filter)
M.register_on_authplayer(function(name, ip, is_success)
if not is_success then return
init_data(name)
end)
M.register_on_joinplayer(function(player)
local name = player:get_player_name()
init_data(name)
local meta = player:get_meta()
local data = player_data[name]

View File

@ -73,9 +73,8 @@ minetest.register_globalstep(function(dtime)
end)
-- set to blank on join (for 3rd party mods)
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
minetest.register_on_authlayer(function(name, ip, is_success)
if not is_success then return end
mcl_playerinfo[name] = {
node_head = "",
node_feet = "",