From d0880366e4c12c9ae02e8b821ddfe19d4a77ae34 Mon Sep 17 00:00:00 2001 From: Linventif Date: Thu, 17 Apr 2025 04:16:13 +0000 Subject: [PATCH] refact: move a hook --- .../modules/players_filter_branch/cl_gui_wrong_branch.lua | 8 +++++++- .../modules/players_filter_branch/cl_hook copy.lua | 5 ----- 2 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 lua/gmod_integration/modules/players_filter_branch/cl_hook copy.lua 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