summaryrefslogtreecommitdiff
path: root/server/map.lua
diff options
context:
space:
mode:
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}