summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2025-06-10 12:08:27 +0100
committerubq323 <ubq323@ubq323.website>2025-06-10 12:08:27 +0100
commit33b6277f901435654df6540fdfce0089bd8b05b8 (patch)
treebd121a29eec7d86efba026980adc9c8ed6b2f1a2
parentffa2a6c016ed4255a6e1092e547149c70be27419 (diff)
no chunks
-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