Skip to content

Commit

Permalink
Fix reversed env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-101 committed Jun 24, 2024
1 parent 431eb13 commit 244cfc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ let accounts = process.env.ACCOUNTS.split(",");

let maxConnectedPlayers = 40;

if (process.env.CONNECTED_PLAYERS) {
maxConnectedPlayers = parseInt(process.env.CONNECTED_PLAYERS);
if (process.env.MAX_CONNECTED_PLAYERS) {
maxConnectedPlayers = parseInt(process.env.MAX_CONNECTED_PLAYERS);
}

let connectedPlayers = 0;

if (process.env.MAX_CONNECTED_PLAYERS) {
connectedPlayers = parseInt(process.env.MAX_CONNECTED_PLAYERS);
if (process.env.CONNECTED_PLAYERS) {
connectedPlayers = parseInt(process.env.CONNECTED_PLAYERS);
}

let port = 19132;
Expand Down

0 comments on commit 244cfc3

Please sign in to comment.