summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-04 23:28:08 +0000
committerubq323 <ubq323@ubq323.website>2023-02-04 23:28:08 +0000
commit9339e47c79f40fe9c4541e638d7fd67ab634c600 (patch)
treead1efddc3608ca506534d3e7ab7b2ae4a35a0476 /server
parent0dc1276df57aa16b4f0eaecf54fb5cd8f00115c6 (diff)
improve tracking of loading chunks, and increase load dist around player
Diffstat (limited to 'server')
-rw-r--r--server/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.lua b/server/server.lua
index a7ee04b..f11b805 100644
--- a/server/server.lua
+++ b/server/server.lua
@@ -67,7 +67,7 @@ local function get_or_gen_chunk(cp)
local ch = map:chunk(cp)
if not ch then
ch = worldgen.gen_chunk(cp)
- map:add_chunk(cp,ch)
+ map:add_chunk(ch)
end
return ch
end