Fix some startup options being reset

This commit is contained in:
ShadowNinja
2014-07-06 19:00:33 -04:00
parent 6c3d50f6f8
commit 546a2be656

View File

@@ -107,10 +107,12 @@ def announce():
else:
server["clients_top"] = server["clients"]
# Make sure that startup options don't change
# Make sure that startup options are saved
if server["action"] != "start":
if "mods" in old:
server["mods"] = old["mods"]
for field in ("dedicated", "rollback", "mapgen", "privs",
"can_see_far_names", "mods"):
if field in old:
server[field] = old[field]
# Popularity
if old: