We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac563e commit aeb0ba2Copy full SHA for aeb0ba2
.changeset/witty-sites-serve.md
@@ -0,0 +1,5 @@
1
+---
2
+"@jolly-pixel/voxel.renderer": patch
3
4
+
5
+Add missing blocks definition when saving on VoxelRenderer
packages/voxel-renderer/src/VoxelRenderer.ts
@@ -473,10 +473,13 @@ export class VoxelRenderer extends ActorComponent {
473
save(): VoxelWorldJSON {
474
this.#logger.debug("Serializing world to JSON...");
475
476
- return this.serializer.serialize(
477
- this.world,
478
- this.tilesetManager
479
- );
+ return {
+ ...this.serializer.serialize(
+ this.world,
+ this.tilesetManager
480
+ ),
481
+ blocks: [...this.blockRegistry.getAll()]
482
+ };
483
}
484
485
async load(
0 commit comments