From efcab9ce46b12495a2cfc00a7b450b2848d26df1 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 11 Jul 2023 17:07:57 +0100 Subject: [PATCH] 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. --- lgsm/modules/info_game.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/info_game.sh b/lgsm/modules/info_game.sh index 3d48f7b27..aa6b223be 100644 --- a/lgsm/modules/info_game.sh +++ b/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"}"