]> git.localhorst.tv Git - blank.git/blobdiff - src/app/runtime.cpp
different limits for reading and generating chunks
[blank.git] / src / app / runtime.cpp
index 30b15aeb4b0d105b713255fbba892837481d45a7..32a401220215dbeeb557e3a53e9b6a5f7ccf6737 100644 (file)
@@ -236,12 +236,12 @@ int Runtime::Execute() {
        if (save.Exists()) {
                save.Read(config.world);
        } else {
-               save.Create(config.world);
+               save.Write(config.world);
        }
 
        Application app(env);
 
-       WorldState world_state(env, config.interface, config.world);
+       WorldState world_state(env, config.interface, config.world, save);
        app.PushState(&world_state);
 
        PreloadState preloader(env, world_state.GetWorld().Loader());