diff options
Diffstat (limited to 'server/chunk.lua')
-rw-r--r-- | server/chunk.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/chunk.lua b/server/chunk.lua index 1e2e135..8e71327 100644 --- a/server/chunk.lua +++ b/server/chunk.lua @@ -15,6 +15,10 @@ function ChunkS.load_from_disk(cls,cp) if not f then return nil end local j = json.decode(f:read("a")) self = cls:from_packet_data(j) + for i,t in ipairs(self.tiles) do + if t == false then self.tiles[i] = 0 + elseif t == true then self.tiles[i] = 9 end + end f:close() return self end |