Skip to content

Commit

Permalink
Merge branch 'main' into multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu authored Oct 15, 2024
2 parents 0f9b7a0 + 9a25ea8 commit af47ca9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osu/bancho/packets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ..objects.channel import Channel
from ..objects.player import Player
from ..objects.match import Match

if TYPE_CHECKING:
from ..game import Game

Expand Down Expand Up @@ -568,6 +568,7 @@ def dms_blocked(stream: StreamIn, game: "Game"):
@Packets.register(ServerPackets.NEW_MATCH)
def new_match(stream: StreamIn, game: "Game"):
match = Match.decode(stream, game, game.bancho.max_slots)

game.bancho.matches.add(match)
game.events.call(ServerPackets.NEW_MATCH, match)

Expand Down
3 changes: 3 additions & 0 deletions osu/objects/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
if TYPE_CHECKING:
from ..game import Game

if TYPE_CHECKING:
from ..game import Game


class Players(LockedSet[Player]):
def __init__(self, game: "Game") -> None:
Expand Down

0 comments on commit af47ca9

Please sign in to comment.