This commit is contained in:
griffi-gh 2023-02-08 03:09:04 +01:00
parent 1ae34def21
commit fb8aa9d528

View file

@ -243,6 +243,9 @@ pub fn switch_to_ingame_if_loaded(
world: UniqueView<ChunkStorage>,
mut state: UniqueViewMut<GameState>
) {
if world.chunks.is_empty() {
return
}
if world.chunks.iter().all(|(_, chunk)| {
chunk.desired_state.matches(chunk.current_state)
}) {