summaryrefslogtreecommitdiff
path: root/server/server.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-06 12:50:21 +0000
committerubq323 <ubq323@ubq323.website>2023-02-06 12:50:21 +0000
commit7952bbc2a606ab22e04112eb2f21a573d0db116e (patch)
tree06d1e456b542ab82efe6a3343756ae3e90cf18e1 /server/server.lua
parent911dc535a9930ef5380ecf31fabbd5123461fc3c (diff)
hook up save/loading of chunks
Diffstat (limited to 'server/server.lua')
-rw-r--r--server/server.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server.lua b/server/server.lua
index 725f7f1..e9eef30 100644
--- a/server/server.lua
+++ b/server/server.lua
@@ -159,10 +159,10 @@ local ntick = 0
local function tick(ntick)
- if ntick % 3 == 0 then
+ if ntick % 30 == 0 then
print("saving things...")
for cp,ch in map:iter_chunks() do
- print(cp)
+ map:save_chunk(cp)
end
end
end