forgot 1 thing in last commit

This commit is contained in:
bgkillas 2024-09-02 13:06:21 -04:00
parent 4c837741f4
commit b0863c95eb

View file

@ -608,6 +608,16 @@ impl WorldManager {
Some(ChunkState::Listening { priority: pri, .. }) =>
{
*pri = priority;
if take_auth {
self.emit_msg(
Destination::Peer(source),
WorldNetMessage::LoseAuthority {
chunk: delta.chunk_coord,
new_priority: priority,
new_authority: source,
}
);
}
}
Some(ChunkState::WantToGetAuth { authority, my_priority, .. }) =>
{
@ -630,7 +640,7 @@ impl WorldManager {
self.chunk_state.insert(delta.chunk_coord, cs);
}
}
_ if take_auth =>
_ if take_auth =>
{
self.emit_msg(
Destination::Peer(source),