From 6e9a052aa877222a1a494ddcdc5507b5bcc3ea68 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 2 Apr 2023 01:28:21 +0100 Subject: minor cleaning --- server/map.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/map.lua') 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} -- cgit v1.2.3