mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-10 01:28:41 -06:00
fix
This commit is contained in:
parent
1ae34def21
commit
fb8aa9d528
|
@ -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)
|
||||
}) {
|
||||
|
|
Loading…
Reference in a new issue