Use the generic getMatch instead of getMatchInfoForTourneyClient

This commit is contained in:
Ethan Stubbs 2021-02-06 01:22:03 +00:00
parent 4416e7e04b
commit 85cd164db6

View file

@ -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);