From 85cd164db6594008cb201b7a5fda0b8da1b6992e Mon Sep 17 00:00:00 2001 From: Ethan Stubbs <37120476+tgpethan@users.noreply.github.com> Date: Sat, 6 Feb 2021 01:22:03 +0000 Subject: [PATCH] Use the generic `getMatch` instead of `getMatchInfoForTourneyClient` --- server/Packets/TourneyMatchSpecialInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Packets/TourneyMatchSpecialInfo.js b/server/Packets/TourneyMatchSpecialInfo.js index 80013b5..fea7aad 100644 --- a/server/Packets/TourneyMatchSpecialInfo.js +++ b/server/Packets/TourneyMatchSpecialInfo.js @@ -4,12 +4,12 @@ const osu = require("osu-packet"), ActionBuffer = require("../ActionBuffer.js"); module.exports = function(CurrentUser, MatchID) { - const matchData = global.MultiplayerManager.getMatchInfoForTourneyClient(MatchID); + const matchData = global.MultiplayerManager.getMatch(MatchID); if (matchData != null) { const osuPacketWriter = new osu.Bancho.Writer(); - osuPacketWriter.MatchUpdate(matchData); + osuPacketWriter.MatchUpdate(matchData.createOsuMatchJSON()); let actions = new ActionBuffer(osuPacketWriter.toBuffer);