Move string network pooling to an "Initialize" event hook.

master
Icedream 2015-04-23 22:10:27 +02:00
parent 202840a12d
commit e3a9596fda
1 changed files with 4 additions and 2 deletions

View File

@ -111,8 +111,10 @@ local fixedNames = {
["taunts/fixed/bees_fix.wav"] = "Not the bees!" ["taunts/fixed/bees_fix.wav"] = "Not the bees!"
} }
hook.Add("Initialize", "PH_TauntMenu_StringPooling", function()
util.AddNetworkString("TauntList_Update") util.AddNetworkString("TauntList_Update")
util.AddNetworkString("TauntMenu_Play") util.AddNetworkString("TauntMenu_Play")
end)
local function FixName(name) local function FixName(name)
if fixedNames[name] ~= nil then return fixedNames[name] end if fixedNames[name] ~= nil then return fixedNames[name] end