]> git.lizzy.rs Git - crafter_client.git/commitdiff
Finally fix client not initializing fully, randomly :)
authoroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 24 May 2020 06:09:34 +0000 (02:09 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 24 May 2020 06:09:34 +0000 (02:09 -0400)
init.lua

index 0fb0d1558de1d7d36177717464fddadee2dbdcff..7c52e45332207dc9cf9369a92c50ed69a7f5cb58 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -33,7 +33,7 @@ end
 --we must delay initialization until the player exists in the world
 local function recursive_startup_attempt()
        local ready_to_go = minetest.localplayer
-       if ready_to_go then
+       if ready_to_go and minetest.get_node_or_nil(minetest.localplayer:get_pos()) then
                --good to begin
                initialize_all()
        else