fix(multiplayer): failed to add items
This commit is contained in:
@@ -507,7 +507,13 @@ class MultiplayerQueue:
|
|||||||
|
|
||||||
limit = HOST_LIMIT if is_host else PER_USER_LIMIT
|
limit = HOST_LIMIT if is_host else PER_USER_LIMIT
|
||||||
if (
|
if (
|
||||||
len([True for u in self.room.playlist if u.owner_id == user.user_id])
|
len(
|
||||||
|
[
|
||||||
|
True
|
||||||
|
for u in self.room.playlist
|
||||||
|
if u.owner_id == user.user_id and not u.expired
|
||||||
|
]
|
||||||
|
)
|
||||||
>= limit
|
>= limit
|
||||||
):
|
):
|
||||||
raise InvokeException(f"You can only have {limit} items in the queue")
|
raise InvokeException(f"You can only have {limit} items in the queue")
|
||||||
|
|||||||
Reference in New Issue
Block a user