fix syntax error

This commit is contained in:
Pierce 2021-12-30 01:27:31 -05:00 committed by plally
parent acba3c6ed4
commit 31c6e53589

View File

@ -463,7 +463,7 @@ hook.Add( "CFC_CrashTick", "CFC_DisconnectInterface_InterfaceUpdate", function(
apiState = _apiState
end
local shouldShowInterface = hook.Run("CFC_DisconnectInterface_ShouldShowInterface")
if shouldShowInterface ~= false and isCrashing and then
if shouldShowInterface ~= false and isCrashing then
-- Open interface if server is crashing, API has responded, interface isn't already open, and interface has not yet been opened
if _apiState == CFCCrashAPI.PINGING_API or _apiState == CFCCrashAPI.SERVER_UP then return end
if interfaceDerma or previouslyShown then return end