From e3a9596fdab9ace8691919dfb935da1aeaa48175 Mon Sep 17 00:00:00 2001 From: icedream Date: Thu, 23 Apr 2015 22:10:27 +0200 Subject: [PATCH] Move string network pooling to an "Initialize" event hook. --- lua/autorun/server/prophunt_tauntmenu.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/autorun/server/prophunt_tauntmenu.lua b/lua/autorun/server/prophunt_tauntmenu.lua index 0805f94..5af0db3 100644 --- a/lua/autorun/server/prophunt_tauntmenu.lua +++ b/lua/autorun/server/prophunt_tauntmenu.lua @@ -111,8 +111,10 @@ local fixedNames = { ["taunts/fixed/bees_fix.wav"] = "Not the bees!" } -util.AddNetworkString("TauntList_Update") -util.AddNetworkString("TauntMenu_Play") +hook.Add("Initialize", "PH_TauntMenu_StringPooling", function() + util.AddNetworkString("TauntList_Update") + util.AddNetworkString("TauntMenu_Play") +end) local function FixName(name) if fixedNames[name] ~= nil then return fixedNames[name] end