diff --git a/PreviewRenderer.js b/PreviewRenderer.js index 2ad4bcf..5a24c70 100644 --- a/PreviewRenderer.js +++ b/PreviewRenderer.js @@ -65,7 +65,7 @@ export default class PreviewRenderer { let animator = this.viewer.getModel().animator; let animation = animations["animations"]["animation.armor_stand.hologram.spawn"]; - Object.values(animation["bones"]).map(bone => Object.values(bone).forEach(animationChannel => { + Object.values(animation["bones"] ?? {}).map(bone => Object.values(bone).forEach(animationChannel => { animationChannel[`${animation["animation_length"]}`] = animationChannel[`${max(...Object.keys(animationChannel))}`]; })); animator.addAnimation("spawn", animations["animations"]["animation.armor_stand.hologram.spawn"]); diff --git a/README.md b/README.md index ee08e01..a4a212c 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ ### About HoloPrint is a web app that converts MCBE structure files into resource packs showing holograms of builds. It builds off the work of [Structura](https://github.com/RavinMaddHatter/Structura), a similar project. Both Structura and HoloPrint aim to recreate the experience of Java Edition mods like [Litematica](https://github.com/maruohon/litematica) and [Schematica](https://github.com/Lunatrius/Schematica) for Bedrock Edition users through resource packs. +> [!TIP] +> View the [wiki](https://github.com/SuperLlama88888/holoprint/wiki/1.-Usage-instructions) for more detailed instructions! + ### Usage > [!NOTE] > On Android the Structure Block export button is hidden; please use [this pack](assets/structureBlockButtonAdderPack.mcpack) to add it back.