From 87600b91dde9dffa36f8b3147bcc81d104dcd83c Mon Sep 17 00:00:00 2001 From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Mon, 20 Apr 2020 08:21:11 -0400 Subject: [PATCH] Rubenwardy fixed error 23 --- init.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index b216d1e..21cc13e 100644 --- a/init.lua +++ b/init.lua @@ -24,18 +24,13 @@ function initialize_all() dofile(path.."/nether.lua") end ---we must delay initialization until the server tells us it's ready to begin +--we must delay initialization until the player exists in the world local function recursive_startup_attempt() - local initialize_client_modchannels = minetest.mod_channel_join("initializer") - - local ready_to_go = initialize_client_modchannels:is_writeable() - if ready_to_go == true then + local ready_to_go = minetest.localplayer + if ready_to_go then --good to begin initialize_all() - initialize_client_modchannels:leave() else - - --try again minetest.after(0,function() recursive_startup_attempt() -- 2.44.0