Skip to content

Commit 902069e

Browse files
committed
fix a world sync issue
1 parent fcd308b commit 902069e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

noita-proxy/src/net/world.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -852,16 +852,14 @@ impl WorldManager {
852852
authority,
853853
my_priority,
854854
..
855-
}) => {
856-
if priority <= *my_priority {
857-
let cs = ChunkState::Listening {
858-
authority: *authority,
859-
priority,
860-
};
861-
self.chunk_state.insert(delta.chunk_coord, cs);
862-
}
855+
}) if priority <= *my_priority => {
856+
let cs = ChunkState::Listening {
857+
authority: *authority,
858+
priority,
859+
};
860+
self.chunk_state.insert(delta.chunk_coord, cs);
863861
}
864-
_ => return,
862+
_ => continue,
865863
}
866864
self.inbound_model.apply_chunk_delta(&delta);
867865
}

0 commit comments

Comments
 (0)