From c3d814a6e3a1e021427e3b543290a358c43a8c9f Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 2 Mar 2016 02:42:22 +0100
Subject: [PATCH] Server: Fix bug in savefile write delay calculation.

---
 server/io.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/io.py b/server/io.py
index 01d0436..a483e2d 100644
--- a/server/io.py
+++ b/server/io.py
@@ -288,7 +288,7 @@ def obey(command, prefix, replay=False, do_record=False):
                     if world_db["WORLD_ACTIVE"]:
                         save_world()
                     io_db["record_chunk"] = ""
-                    io_db["save_wait"] = time.time()
+                    io_db["save_wait_start"] = time.time()
             io_db["worldstate_updateable"] = world_db["WORLD_ACTIVE"]
     elif 0 != len(tokens):
         print("Invalid command/argument, or bad number of tokens: " + command)
-- 
2.30.2