TourneyMatchSpecialInfo code quality

This commit is contained in:
Ethan Stubbs 2021-02-05 03:15:39 +00:00
parent 8c2e4823cd
commit 44838a9629

View file

@ -1,7 +1,7 @@
const osu = require("osu-packet"),
UserPresence = require("./UserPresence.js"),
StatusUpdate = require("./StatusUpdate.js"),
ActionBuffer = require("../ActionBuffer.js");
const UserPresence = require("./UserPresence.js"),
StatusUpdate = require("./StatusUpdate.js");
module.exports = function(CurrentUser, MatchID) {
const matchData = global.MultiplayerManager.getMatchInfoForTourneyClient(MatchID);
@ -13,8 +13,7 @@ module.exports = function(CurrentUser, MatchID) {
let actions = new ActionBuffer(osuPacketWriter.toBuffer);
for (let i = 0; i < matchData.slots.length; i++) {
const slot = matchData.slots[i];
for (let slot in matchData.slots) {
actions.bufferAction(UserPresence(CurrentUser, slot.playerId, false));
actions.bufferAction(StatusUpdate(CurrentUser, slot.playerId, false));
}