Skip to content

Commit

Permalink
gmod: Fix API status only being logged if it is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
luca1197 committed Jan 26, 2025
1 parent bd7a94e commit 0374bee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0374bee

Please sign in to comment.