mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 14:58:44 -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>,
|
world: UniqueView<ChunkStorage>,
|
||||||
mut state: UniqueViewMut<GameState>
|
mut state: UniqueViewMut<GameState>
|
||||||
) {
|
) {
|
||||||
|
if world.chunks.is_empty() {
|
||||||
|
return
|
||||||
|
}
|
||||||
if world.chunks.iter().all(|(_, chunk)| {
|
if world.chunks.iter().all(|(_, chunk)| {
|
||||||
chunk.desired_state.matches(chunk.current_state)
|
chunk.desired_state.matches(chunk.current_state)
|
||||||
}) {
|
}) {
|
||||||
|
|
Loading…
Reference in a new issue