running_send = nil
player_movement_state = nil
nether = nil
+aether = nil
+run = nil
function initialize_all()
--declare globals for now
running_send = minetest.mod_channel_join("running_send")
player_movement_state = minetest.mod_channel_join("player.player_movement_state")
nether = minetest.mod_channel_join("nether_teleporters")
+ aether = minetest.mod_channel_join("aether_teleporters")
--next we load everything seperately because it's easier to work on individual files than have everything jammed into one file
--not into seperate mods because that is unnecessary and cumbersome
dofile(path.."/weather_handling.lua")
dofile(path.."/environment_effects.lua")
dofile(path.."/nether.lua")
+ dofile(path.."/aether.lua")
+ dofile(path.."/waila.lua")
+ dofile(path.."/music_handling.lua")
end
---we must delay initialization until the server tells us it's ready to begin
-local initialize_client_modchannels = minetest.mod_channel_join("initializer")
-
+--we must delay initialization until the player exists in the world
local function recursive_startup_attempt()
- 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 and minetest.get_node_or_nil(minetest.localplayer:get_pos()) then
--good to begin
initialize_all()
- initialize_client_modchannels:leave()
else
--try again
minetest.after(0,function()