summaryrefslogtreecommitdiff
path: root/server/map.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-04-02 01:28:21 +0100
committerubq323 <ubq323@ubq323.website>2023-04-02 01:28:21 +0100
commit6e9a052aa877222a1a494ddcdc5507b5bcc3ea68 (patch)
tree811f9c092eb7266faf28002802b5468534b1d76c /server/map.lua
parente77609c5bc8b44aa22ef88063246fd05add5e705 (diff)
minor cleaning
Diffstat (limited to 'server/map.lua')
-rw-r--r--server/map.lua5
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}