fix(multiplayer): failed to add items

This commit is contained in:
MingxuanGame
2025-08-13 08:19:39 +00:00
parent 6526d3911a
commit f19aaa6233

View File

@@ -507,7 +507,13 @@ class MultiplayerQueue:
limit = HOST_LIMIT if is_host else PER_USER_LIMIT
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
):
raise InvokeException(f"You can only have {limit} items in the queue")