X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fio.py;h=ce3ee1a947eca4b9109cf4e9df51c57f41248028;hb=a4e6c51b2e9aa85dc5f5e3067b602c01953a6d43;hp=ad30cc2d1fe892e1fcdf65549d6d5fadb2aad60f;hpb=5cdce6d500080008b097435e2891674c16fde208;p=plomrogue diff --git a/server/io.py b/server/io.py index ad30cc2..ce3ee1a 100644 --- a/server/io.py +++ b/server/io.py @@ -170,7 +170,7 @@ def save_world(): for _id in sorted(world_db[category].keys()): string = string + id_string + " " + str(_id) + "\n" for key in sorted(world_db[category][_id].keys()): - if not key in special_keys: + if key.isupper() and not key in special_keys: x = world_db[category][_id][key] argument = quote_escape(x) if str == type(x) else str(x) string = string + key + " " + argument + "\n" @@ -286,7 +286,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":