X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fio.py;h=5e02ed4287d1c22e4724a982f2f72718ef3af839;hb=2bf9dbbeca48cfde11566275d10ca91912257a0b;hp=3e1fb41862e18827fb4ad805e3aab556900c6a99;hpb=2f7c446f698dbcf510a4997e1689e3a2df3e24be;p=plomrogue diff --git a/server/io.py b/server/io.py index 3e1fb41..5e02ed4 100644 --- a/server/io.py +++ b/server/io.py @@ -212,6 +212,7 @@ def save_world(): string = string + "T_ID " + str(tid) + "\n" for carried in sorted(world_db["Things"][tid]["T_CARRIES"]): string = string + "T_CARRIES " + str(carried) + "\n" + string = string + io_db["hook_save"]() string = string + "SEED_RANDOMNESS " + str(rand.seed) + "\n" + \ "WORLD_ACTIVE " + str(world_db["WORLD_ACTIVE"]) atomic_write(io_db["path_save"], string) @@ -286,7 +287,7 @@ def obey_lines_in_file(path, name, do_record=False): def try_worldstate_update(): """Write worldstate file if io_db["worldstate_updateable"] is set.""" - if io_db["worldstate_updateable"]: + if world_db["WORLD_ACTIVE"] and io_db["worldstate_updateable"]: string = "" for entry in io_db["worldstate_write_order"]: if entry[1] == "world_int":