Skip to content

Commit

Permalink
Fix bug in guidebook code (#643)
Browse files Browse the repository at this point in the history
# Objective

Fix the incorrect code in the guidebook setup chapter.

# Solution

Change `visible_entity_layers.insert(layer);` to
`visible_entity_layers.0.insert(layer);`
  • Loading branch information
Cheezer1656 authored Sep 3, 2024
1 parent 7d1c427 commit a2efd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/book/1-getting-started/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fn init_clients(

layer_id.0 = layer;
visible_chunk_layer.0 = layer;
visible_entity_layers.insert(layer);
visible_entity_layers.0.insert(layer);
pos.set([0.5, 65.0, 0.5]);
*game_mode = GameMode::Creative;
}
Expand Down

0 comments on commit a2efd58

Please sign in to comment.