summaryrefslogtreecommitdiff
path: root/server/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/server.lua')
-rw-r--r--server/server.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/server.lua b/server/server.lua
index a4a4459..5bbff6c 100644
--- a/server/server.lua
+++ b/server/server.lua
@@ -83,8 +83,8 @@ local function doctor_chunks()
for k,chunk in pairs(chunks.d) do local cp = Pos:unkey(k)
local used = false
for player in pairs(players) do if player.loaded[k] then used=true end end
- if not used then chunk:save() chunks:remove(cp) end end
- if not next(chunks.d) then print'no chunks' end end
+ if not used then chunk:save() chunks:remove(cp)
+ if not next(chunks.d) then print'no chunks' end end end
while true do
local ev = host:service(10000) if ev then
@@ -104,4 +104,5 @@ while true do
end
end
doctor_chunks()
+ io.flush()
end