Skip to content

Commit

Permalink
Fix client-side block palette.
Browse files Browse the repository at this point in the history
fixes #363
  • Loading branch information
IntegratedQuantum committed May 19, 2024
1 parent 6f2973e commit a4315b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/network.zig
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ pub const Protocols = struct {
spawn.put("y", main.server.world.?.spawn[1]);
spawn.put("z", main.server.world.?.spawn[2]);
jsonObject.put("spawn", spawn);
jsonObject.put("blockPalette", main.server.world.?.blockPalette.save(main.stackAllocator));

const outData = jsonObject.toStringEfficient(main.stackAllocator, &[1]u8{stepServerData});
defer main.stackAllocator.free(outData);
Expand Down

0 comments on commit a4315b9

Please sign in to comment.