don't set _current to None if track was replaced
This commit is contained in:
parent
d396ac44f1
commit
c13181beae
|
|
@ -173,7 +173,7 @@ class Player(VoiceProtocol):
|
|||
event_type = data.get("type")
|
||||
event: PomiceEvent = getattr(events, event_type)(data)
|
||||
|
||||
if isinstance(event, TrackEndEvent):
|
||||
if isinstance(event, TrackEndEvent) and event.reason != "REPLACED":
|
||||
self._current = None
|
||||
|
||||
event.dispatch(self._bot)
|
||||
|
|
|
|||
Loading…
Reference in New Issue