summaryrefslogtreecommitdiff
path: root/server/server.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-06 12:19:58 +0000
committerubq323 <ubq323@ubq323.website>2023-02-06 12:19:58 +0000
commit0d86a5cf4b84e03af518d4b8dceb2385672032a8 (patch)
tree30778e8a2b380c6bd943303889d1c5243546a81e /server/server.lua
parent3ad4d4da500a770e4f9cc7aa1bfe42588126a67c (diff)
clientside chunk unloading when not near. also refactor coordinate things slightly
Diffstat (limited to 'server/server.lua')
-rw-r--r--server/server.lua5
1 files changed, 4 insertions, 1 deletions
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