home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Add WORLD_ACTIVE checks.
[plomrogue]
/
server
/
io.py
diff --git
a/server/io.py
b/server/io.py
index 3e1fb41862e18827fb4ad805e3aab556900c6a99..ce3ee1a947eca4b9109cf4e9df51c57f41248028 100644
(file)
--- a/
server/io.py
+++ b/
server/io.py
@@
-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."""
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":
string = ""
for entry in io_db["worldstate_write_order"]:
if entry[1] == "world_int":