mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 04:48:21 -06:00
fix
This commit is contained in:
parent
dc07f891b0
commit
628457b0de
|
@ -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