Skip to content

Commit

Permalink
Fixed Clean name for updated hypixel constants (slothpixel#675)
Browse files Browse the repository at this point in the history
Removed the replacing of _LOBBY when converting clean name.
  • Loading branch information
TheMysterys authored and ChristianDobbie committed Jan 10, 2022
1 parent 28d88e8 commit a0a167c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processors/processGameCounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function processGameCounts(data) {
};
const { games: games_, playerCount } = data;
for (const [rawGame, data_] of Object.entries(games_)) {
const cleanGame = toMode(rawGame.replace(/_LOBBY/, ''), modes);
const cleanGame = toMode(rawGame, modes);
if (data_.modes && Object.keys(data_.modes).length > 1) {
const modes_ = {};
for (const [rawMode, count] of Object.entries(data_.modes)) {
Expand Down

0 comments on commit a0a167c

Please sign in to comment.