Remove player when leaving
- Add Clientbound Remove Entities
This commit is contained in:
1 parent
4f06496261
commit
39985246ba
5 files changed
+31
-4
No files matched your search
+1
-1
@@ -138,8 +138,8 @@ fn main() -> io::Result<()> {
|
||||
};
|
||||
if done {
|
||||
if let Some(client) = connections.remove(&token) {
|
||||
let mut client = client.borrow_mut();
|
||||
server.remove_client(&token);
|
||||
let mut client = client.borrow_mut();
|
||||
poll.registry().deregister(&mut client.connection)?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user