warning for incorrect decrypt size
This commit is contained in:
parent
2c6835e2b3
commit
b5e4cabe4d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue