diff options
author | ubq323 <ubq323@ubq323.website> | 2023-04-02 01:28:21 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-04-02 01:28:21 +0100 |
commit | 6e9a052aa877222a1a494ddcdc5507b5bcc3ea68 (patch) | |
tree | 811f9c092eb7266faf28002802b5468534b1d76c /server/map.lua | |
parent | e77609c5bc8b44aa22ef88063246fd05add5e705 (diff) |
minor cleaning
Diffstat (limited to 'server/map.lua')
-rw-r--r-- | server/map.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/map.lua b/server/map.lua index 3d7f377..7b2e62b 100644 --- a/server/map.lua +++ b/server/map.lua @@ -28,13 +28,14 @@ function MapS.obtain(self,cp) end end -function MapS.save_chunk(self,cp) + +function MapS.save_chunk(self,cp,txn) -- will only actually save anything if anything needs saving. -- any attempt to save not-loaded chunks is silently ignored local ch = self:chunk(cp) if not ch then return end - ch:save_if_dirty() + ch:save_if_dirty(txn) end return {MapS=MapS} |