From 0374bee4856b999cc09636a4e27175ea6ab71a89 Mon Sep 17 00:00:00 2001 From: Luca <33791936+luca1197@users.noreply.github.com> Date: Sun, 26 Jan 2025 09:32:52 +0100 Subject: [PATCH] gmod: Fix API status only being logged if it is not available --- .../lua/gmod_web_api_auth/server/sv_gmod_web_api_auth.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-gmod/gmod_web_api_auth/lua/gmod_web_api_auth/server/sv_gmod_web_api_auth.lua b/src-gmod/gmod_web_api_auth/lua/gmod_web_api_auth/server/sv_gmod_web_api_auth.lua index 94b15c4..4e0a125 100644 --- a/src-gmod/gmod_web_api_auth/lua/gmod_web_api_auth/server/sv_gmod_web_api_auth.lua +++ b/src-gmod/gmod_web_api_auth/lua/gmod_web_api_auth/server/sv_gmod_web_api_auth.lua @@ -7,8 +7,8 @@ hook.Add("InitPostEntity", "GWAA:CheckAPIServer", function() GWAA.GetAPIStatus(function(available, info) + GWAA.PrintToConsole(available and "API is available" or "API is *NOT* available") if not available or not istalbe(info) then - GWAA.PrintToConsole(available and "API is available" or "API is *NOT* available") return end