X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fio.py;h=ab3bbffc071e7e7b739c82f921ee4df71f22676b;hb=289eb1b62e2ae3cd1de5c815a670af7cf0b9660e;hp=0357b2e6c5946770cbcdda7f3df14e485573d044;hpb=dedd7e91f523cc8b85b36e688897fdc7ccdccafc;p=plomrogue diff --git a/server/io.py b/server/io.py index 0357b2e..ab3bbff 100644 --- a/server/io.py +++ b/server/io.py @@ -180,9 +180,12 @@ def save_world(): string = "" for key in sorted(world_db.keys()): - if (not isinstance(world_db[key], dict)) and key != "MAP" and \ + if (not isinstance(world_db[key], dict) and + not isinstance(world_db[key], list)) and key != "MAP" and \ key != "WORLD_ACTIVE": string = string + key + " " + str(world_db[key]) + "\n" + for plugin in world_db["PLUGIN"]: + string = string + "PLUGIN " + plugin + "\n" string = string + mapsetter("MAP")() string = string + helper("ThingActions", "TA_ID") string = string + helper("ThingTypes", "TT_ID", {"TT_CORPSE_ID": False})