game: core: change player to player.isconnected
befort: if a player is disconnected he doesn't have an object after: he have un object with a socket == None
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import Union
|
||||
from __future__ import annotations
|
||||
|
||||
class Position:
|
||||
|
||||
@ -16,4 +16,7 @@ class Position:
|
||||
"time": self.time,
|
||||
}
|
||||
|
||||
return data
|
||||
return data
|
||||
|
||||
def __eq__(self, __value: Position) -> bool:
|
||||
return (self.position == __value.position)
|
Reference in New Issue
Block a user