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, 1 insertions, 4 deletions
diff --git a/server/map.lua b/server/map.lua
index 9627de9..3d7f377 100644
--- a/server/map.lua
+++ b/server/map.lua
@@ -29,15 +29,12 @@ function MapS.obtain(self,cp)
end
function MapS.save_chunk(self,cp)
+ -- 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()
end
-function MapS.save_and_unload(self,cp)
- self:save_chunk(cp)
- self:remove_chunk(cp)
-end
return {MapS=MapS}