mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 23:59:18 +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)))
|
assert isinstance(player, (Player, type(None)))
|
||||||
|
|
||||||
# Remove them from any current Activity.
|
# 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:
|
if player in activity.players:
|
||||||
activity.remove_player(sessionplayer)
|
activity.remove_player(sessionplayer)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user