summaryrefslogtreecommitdiff
path: root/server/chunk.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/chunk.lua')
-rw-r--r--server/chunk.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/chunk.lua b/server/chunk.lua
index 4fb2960..1e2e135 100644
--- a/server/chunk.lua
+++ b/server/chunk.lua
@@ -5,7 +5,7 @@ local json = require"common.dkjson"
local ChunkS = class.extend(Chunk)
function ChunkS.make(cls,...)
local self = Chunk.make(cls,...)
- self.dirty = true
+ self.dirty = false
return self
end
function ChunkS.load_from_disk(cls,cp)
@@ -26,6 +26,7 @@ function ChunkS.save_if_dirty(self)
f:write(self:data_packet())
f:flush()
f:close()
+ self.dirty = false
end
end
function ChunkS.set_at(self,...)