diff options
Diffstat (limited to 'server/map.lua')
-rw-r--r-- | server/map.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/map.lua b/server/map.lua index e8be2ff..2775f7c 100644 --- a/server/map.lua +++ b/server/map.lua @@ -18,7 +18,7 @@ function MapS.obtain(self,cp) if ch then return ch else - ch = ChunkS:load_from_disk(cp) + ch = ChunkS:invigorate(cp) if not ch then ch = worldgen.gen_chunk(cp) end @@ -34,7 +34,7 @@ function MapS.save_chunk(self,cp,txn) local ch = self:chunk(cp) if not ch then return end - ch:save_if_dirty(txn) + ch:persist(txn) end return {MapS=MapS} |