mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-04 06:15:32 +02:00
patch viewer to so not constantly throwing errors
This commit is contained in:
parent
39abf8a19e
commit
4cd5a8f658
1 changed files with 13 additions and 0 deletions
13
patches/prismarine-viewer+1.33.0.patch
Normal file
13
patches/prismarine-viewer+1.33.0.patch
Normal file
|
@ -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)) {
|
Loading…
Add table
Reference in a new issue