diff options
-rw-r--r-- | space.js | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -32,7 +32,6 @@ class Space{ for (let line=0; line<8; line++) this.data.push([]); // Adds lines for (let x=dimension[0][1]; x<=dimension[1][1]; x++){ - if (!tiles[[y,x]]) tiles[[y,x]] = {"content":' '.repeat(16*8),"properties":{"cell_props":{}}}; tilein.call(this, tiles[[y,x]], y-dimension[0][0]); } } @@ -43,12 +42,8 @@ class Space{ let read = 0; //line of cont to read for (let line=0; line<8; line++){ let curline = line+8*tilerow; - if (conform && incl.includes(line)){ - for (let i=0; i<16; i++) this.data[curline].push(' '); - } else { - this.data[curline].push(...cont[read]); - read++; - } + this.data[curline].push(...cont[read]); + read++; } } return this; |