forked from MineClone5/MineClone5
#198 Fix a crash, step 7
This commit is contained in:
parent
3984c72bbc
commit
52e2e2506b
|
@ -1093,9 +1093,13 @@ if progressive_mode then
|
||||||
|
|
||||||
mcl_craftguide.add_recipe_filter("Default progressive filter", progressive_filter)
|
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)
|
M.register_on_joinplayer(function(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
init_data(name)
|
|
||||||
local meta = player:get_meta()
|
local meta = player:get_meta()
|
||||||
local data = player_data[name]
|
local data = player_data[name]
|
||||||
|
|
||||||
|
|
|
@ -73,9 +73,8 @@ minetest.register_globalstep(function(dtime)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- set to blank on join (for 3rd party mods)
|
-- set to blank on join (for 3rd party mods)
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_authlayer(function(name, ip, is_success)
|
||||||
local name = player:get_player_name()
|
if not is_success then return end
|
||||||
|
|
||||||
mcl_playerinfo[name] = {
|
mcl_playerinfo[name] = {
|
||||||
node_head = "",
|
node_head = "",
|
||||||
node_feet = "",
|
node_feet = "",
|
||||||
|
|
Loading…
Reference in New Issue