]> git.lizzy.rs Git - crafter_client.git/blobdiff - init.lua
Update README.md
[crafter_client.git] / init.lua
index 5d645fba7a2be57d90abb38588bd282b1e1e4164..7c22037e22af1b5302d54b8a712f6f78bd4ba498 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -8,6 +8,7 @@ if not minetest.get_node_def("client_version_checker:this_is_the_signature_of_cr
        return
 end
 
+nodes = nil
 function initialize_all()
        --declare globals for now
 
@@ -24,6 +25,7 @@ function initialize_all()
        dofile(path.."/version_send.lua")
        dofile(path.."/colored_names/colored_names.lua")
        dofile(path.."/fire_handling.lua")
+       dofile(path.."/sleeping.lua")
 end
 
 --we must delay initialization until the player exists in the world
@@ -42,18 +44,3 @@ end
 
 --begin initial attempt
 recursive_startup_attempt()
-
---leave mod channels on shutdown
---[[
-minetest.register_on_shutdown(function()
-       weather_intake = nil
-       weather = nil
-       weather_type = nil
-       player_movement_state = nil
-       nether = nil
-       aether = nil
-       name = nil
-       version_channel = nil
-       fire_handling_channel = nil
-end)
-]]--
\ No newline at end of file