From 54d2bce6840f6d1060de99be27ec0c96fede530f Mon Sep 17 00:00:00 2001 From: Python1320 Date: Thu, 5 Oct 2023 12:23:43 +0300 Subject: [PATCH] Use engine.ActiveGamemode() instead of Name (#114) --- lua/easychat/modules/client/terrortown.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/easychat/modules/client/terrortown.lua b/lua/easychat/modules/client/terrortown.lua index 828d877..6421a98 100644 --- a/lua/easychat/modules/client/terrortown.lua +++ b/lua/easychat/modules/client/terrortown.lua @@ -1,7 +1,7 @@ -if gmod.GetGamemode().Name ~= "terrortown" then return "Terrortown Compat" end - -hook.Add("ECVoiceHUD", "EasyChatModuleTerrortown", function() - return false -- DISABLED: TTT Voice HUD affects traitor voice mode -end) +if engine.ActiveGamemode() == "terrortown" then + hook.Add("ECVoiceHUD", "EasyChatModuleTerrortown", function() + return false -- DISABLED: TTT Voice HUD affects traitor voice mode + end) +end return "Terrortown Compat"