Skip to content

Commit

Permalink
fix a world sync issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bgkillas committed Dec 6, 2024
1 parent fcd308b commit 902069e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions noita-proxy/src/net/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,16 +852,14 @@ impl WorldManager {
authority,
my_priority,
..
}) => {
if priority <= *my_priority {
let cs = ChunkState::Listening {
authority: *authority,
priority,
};
self.chunk_state.insert(delta.chunk_coord, cs);
}
}) if priority <= *my_priority => {
let cs = ChunkState::Listening {
authority: *authority,
priority,
};
self.chunk_state.insert(delta.chunk_coord, cs);
}
_ => return,
_ => continue,
}
self.inbound_model.apply_chunk_delta(&delta);
}
Expand Down

0 comments on commit 902069e

Please sign in to comment.