From 33b6277f901435654df6540fdfce0089bd8b05b8 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 10 Jun 2025 12:08:27 +0100 Subject: no chunks --- server/server.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server') 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 -- cgit v1.2.3