diff --git a/bun.lockb b/bun.lockb index 1227409..c71b6ef 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/classes/World.ts b/classes/World.ts index ee2f545..90a9385 100644 --- a/classes/World.ts +++ b/classes/World.ts @@ -99,6 +99,10 @@ export class World { this.data = ungziped.slice(cborSize+4); this.dataView = new DataView(this.data.buffer); + + if(4 + this.size.x * this.size.y * this.size.z == this.data.length) { + console.log('[WARNING] Encoding was wrong somewhere!') + } } catch(e) { const layers = Math.floor(this.size.y / 2);