refact: move a hook

This commit is contained in:
Linventif 2025-04-17 04:16:13 +00:00
parent ac54b3db55
commit d0880366e4
2 changed files with 7 additions and 6 deletions

View File

@ -26,4 +26,10 @@ function gmInte.openWrongBranchPopup()
linkButton:SetSize(buttonGrid:GetColWide() - 10, buttonGrid:GetRowHeight())
buttonGrid:AddItem(linkButton)
gmInte.applyPaint(linkButton)
end
end
hook.Add("InitPostEntity", "gmInte:Ply:Ready", function()
gmInte.SendNet("ready", {
["branch"] = LocalPlayer():gmInteGetBranch()
})
end)

View File

@ -1,5 +0,0 @@
hook.Add("InitPostEntity", "gmInte:Ply:Ready", function()
gmInte.SendNet("ready", {
["branch"] = LocalPlayer():gmInteGetBranch()
})
end)