summaryrefslogtreecommitdiff
path: root/common/map.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-06 11:46:31 +0000
committerubq323 <ubq323@ubq323.website>2023-02-06 11:46:50 +0000
commitc74c2a3133ad4d1f03b83021e53fb9e8a67b3914 (patch)
tree22d415e85381c9a09c471afa4a0a6f1824f67b87 /common/map.lua
parentc2184634b6d3c3268c08c8d430506cfb60245fdf (diff)
tick timing in main server loop, refactor, start on saving/loading chunks
Diffstat (limited to 'common/map.lua')
-rw-r--r--common/map.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/map.lua b/common/map.lua
index d32cbf3..8161f11 100644
--- a/common/map.lua
+++ b/common/map.lua
@@ -29,8 +29,8 @@ function Map.mark_chunk_loading(self,cp)
print("marking chunk as loading",cp)
self:_set_chunk(cp,false)
end
-function Map.unload_chunk(self,cp)
- print("unloading chunk",cp)
+function Map.remove_chunk(self,cp)
+ print("removing chunk",cp)
if not self.chunks[cp.u] then return end
self.chunks[cp.u][cp.v] = nil
-- remove list if empty