From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Mon, 20 Apr 2020 11:52:14 +0000 (-0400) Subject: Attempt 57 at stopping error 23 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8be315995a98220d1b08329f26660506de0d0d38;p=crafter_client.git Attempt 57 at stopping error 23 --- diff --git a/init.lua b/init.lua index 4d1cac3..b216d1e 100644 --- a/init.lua +++ b/init.lua @@ -25,15 +25,17 @@ function initialize_all() end --we must delay initialization until the server tells us it's ready to begin -local initialize_client_modchannels = minetest.mod_channel_join("initializer") - 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 --good to begin initialize_all() initialize_client_modchannels:leave() else + + --try again minetest.after(0,function() recursive_startup_attempt()