diff --git a/lua/gmod_integration/modules/players_filter_branch/cl_gui_wrong_branch.lua b/lua/gmod_integration/modules/players_filter_branch/cl_gui_wrong_branch.lua index 221252e..831be44 100644 --- a/lua/gmod_integration/modules/players_filter_branch/cl_gui_wrong_branch.lua +++ b/lua/gmod_integration/modules/players_filter_branch/cl_gui_wrong_branch.lua @@ -26,4 +26,10 @@ function gmInte.openWrongBranchPopup() linkButton:SetSize(buttonGrid:GetColWide() - 10, buttonGrid:GetRowHeight()) buttonGrid:AddItem(linkButton) gmInte.applyPaint(linkButton) -end \ No newline at end of file +end + +hook.Add("InitPostEntity", "gmInte:Ply:Ready", function() + gmInte.SendNet("ready", { + ["branch"] = LocalPlayer():gmInteGetBranch() + }) +end) \ No newline at end of file diff --git a/lua/gmod_integration/modules/players_filter_branch/cl_hook copy.lua b/lua/gmod_integration/modules/players_filter_branch/cl_hook copy.lua deleted file mode 100644 index d68d81f..0000000 --- a/lua/gmod_integration/modules/players_filter_branch/cl_hook copy.lua +++ /dev/null @@ -1,5 +0,0 @@ -hook.Add("InitPostEntity", "gmInte:Ply:Ready", function() - gmInte.SendNet("ready", { - ["branch"] = LocalPlayer():gmInteGetBranch() - }) -end) \ No newline at end of file