From 0d86a5cf4b84e03af518d4b8dceb2385672032a8 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 6 Feb 2023 12:19:58 +0000 Subject: clientside chunk unloading when not near. also refactor coordinate things slightly --- server/server.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/server.lua') diff --git a/server/server.lua b/server/server.lua index eda6258..725f7f1 100644 --- a/server/server.lua +++ b/server/server.lua @@ -159,8 +159,11 @@ local ntick = 0 local function tick(ntick) - if ntick % 30 == 0 then + if ntick % 3 == 0 then print("saving things...") + for cp,ch in map:iter_chunks() do + print(cp) + end end end -- cgit v1.2.3