mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-28 01:43:22 +08:00
Fixed spurious warning of 'player not found in activity in on_player_leave'
This commit is contained in:
parent
6ff2b30933
commit
af68012d9d
@ -281,7 +281,7 @@ class Session:
|
||||
assert isinstance(player, (Player, type(None)))
|
||||
|
||||
# Remove them from any current Activity.
|
||||
if activity is not None:
|
||||
if player is not None and activity is not None:
|
||||
if player in activity.players:
|
||||
activity.remove_player(sessionplayer)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user