From 16fe17edf50ffa32e3f9a3856cd59ae3cca04bfe Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Wed, 18 Dec 2024 22:49:17 +0300 Subject: [PATCH] fix lint --- prismarine-viewer/viewer/lib/mesher/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prismarine-viewer/viewer/lib/mesher/models.ts b/prismarine-viewer/viewer/lib/mesher/models.ts index 51a00a448..84c591a1a 100644 --- a/prismarine-viewer/viewer/lib/mesher/models.ts +++ b/prismarine-viewer/viewer/lib/mesher/models.ts @@ -123,7 +123,7 @@ const isCube = (block: Block) => { if (block.isCube) return true if (!block.models?.length || block.models.length !== 1) return false // all variants - return block.models[0].every(v => v.elements!.every(e => { + return block.models[0].every(v => v.elements.every(e => { return e.from[0] === 0 && e.from[1] === 0 && e.from[2] === 0 && e.to[0] === 16 && e.to[1] === 16 && e.to[2] === 16 })) }