Guest User

Untitled

a guest
Apr 19th, 2020
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --we must delay initialization until the server tells us it's ready to begin
  2. local initialize_client_modchannels = minetest.mod_channel_join("initializer")
  3.  
  4. local function recursive_startup_attempt()
  5.     local ready_to_go = initialize_client_modchannels:is_writeable()
  6.     if ready_to_go == true then
  7.         --good to begin
  8.         initialized = true
  9.         initialize_all()
  10.         initialize_client_modchannels:leave()
  11.     else
  12.         --try again
  13.         minetest.after(0,function()
  14.             recursive_startup_attempt()
  15.         end)
  16.     end
  17. end
  18.  
  19. --begin initial attempt
  20. recursive_startup_attempt()
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×