home · contact · privacy
Server: Save PLUGIN command at top of save file.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 23 Feb 2016 21:12:06 +0000 (22:12 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 23 Feb 2016 21:12:06 +0000 (22:12 +0100)
server/io.py

index ac7558efae318d99efa53105c5882a40f86f1515..877e525e3b23c14eccff83df2e9c572fd99bb7b1 100644 (file)
@@ -179,13 +179,13 @@ def save_world():
         return string
 
     string = ""
+    for plugin in world_db["PLUGIN"]:
+        string = string + "PLUGIN " + plugin + "\n"
     for key in sorted(world_db.keys()):
         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})