BanchoLobby: all mods support

Closes #24
parent e2dc9929
Pipeline #2028 passed with stages
in 1 minute and 58 seconds
......@@ -440,8 +440,11 @@ class BanchoLobby extends EventEmitter {
// If we can compare mods and if they're the same, we can immediately resolve.
if(JSON.stringify(mods) == JSON.stringify(this.mods) && freemod == this.freemod)
return resolve();
let value = 0;
for(const mod of mods)
modsString += mod.shortMod+" ";
value += mod.enumValue;
modsString += value + " ";
}
else
return reject(new Error("mods need to be string or array of BanchoMods"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment