Use the generic getMatch
instead of getMatchInfoForTourneyClient
This commit is contained in:
parent
4416e7e04b
commit
85cd164db6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue