From 4cd5a8f658784008f72da1107d8e57242d34a47e Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Fri, 7 Mar 2025 23:19:41 -0600 Subject: [PATCH] patch viewer to so not constantly throwing errors --- patches/prismarine-viewer+1.33.0.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/prismarine-viewer+1.33.0.patch diff --git a/patches/prismarine-viewer+1.33.0.patch b/patches/prismarine-viewer+1.33.0.patch new file mode 100644 index 0000000..3ef7a5a --- /dev/null +++ b/patches/prismarine-viewer+1.33.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/prismarine-viewer/viewer/lib/entity/Entity.js b/node_modules/prismarine-viewer/viewer/lib/entity/Entity.js +index 8945452..dab25be 100644 +--- a/node_modules/prismarine-viewer/viewer/lib/entity/Entity.js ++++ b/node_modules/prismarine-viewer/viewer/lib/entity/Entity.js +@@ -203,7 +203,7 @@ function getMesh (texture, jsonModel) { + class Entity { + constructor (version, type, scene) { + const e = entities[type] +- if (!e) throw new Error(`Unknown entity ${type}`) ++ if (!e) return; //throw new Error(`Unknown entity ${type}`) + + this.mesh = new THREE.Object3D() + for (const [name, jsonModel] of Object.entries(e.geometry)) {