Browse Source

refactor: update queryport calculation in info_game.sh

The code change updates the calculation of the queryport variable in the info_game.sh script. Instead of assigning it the same value as port, it now subtracts 1 from the port value. This ensures that queryport is set correctly for further use in the script.
pull/4261/head
Daniel Gibbs 2 years ago
parent
commit
efcab9ce46
  1. 2
      lgsm/modules/info_game.sh

2
lgsm/modules/info_game.sh

@ -1758,7 +1758,7 @@ fn_info_game_rw() {
gamemode="${gamemode:-"NOT SET"}"
maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}"
queryport="${port}"
queryport="$((port - 1))"
rconport="${rconport:-"0"}"
seed="${seed:-"0"}"
servername="${servername:-"NOT SET"}"

Loading…
Cancel
Save