Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some startup options being reset
  • Loading branch information
ShadowNinja committed Jul 6, 2014
1 parent 6c3d50f commit 546a2be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server.py
Expand Up @@ -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:
Expand Down

0 comments on commit 546a2be

Please sign in to comment.