mirror of
https://github.com/thirteen-io/Advanced-Bone-Tool.git
synced 2025-03-04 03:13:35 -05:00
Fixed bug when opening the context menu with no active tool.
This commit is contained in:
parent
9e658726fc
commit
f1d307d377
@ -71,7 +71,10 @@ if CLIENT then
|
||||
|
||||
local shouldGlow = false
|
||||
hook.Add( "OnContextMenuOpen", "Advanced Bone Tool", function()
|
||||
shouldGlow = ( LocalPlayer():GetTool().Name == "Advanced Bone Tool" )
|
||||
local tool = LocalPlayer():GetTool()
|
||||
if ( IsValid( tool ) ) then
|
||||
shouldGlow = ( tool.Name == "Advanced Bone Tool" )
|
||||
end
|
||||
end )
|
||||
|
||||
hook.Add( "OnContextMenuClose", "Advanced Bone Tool", function()
|
||||
|
Loading…
Reference in New Issue
Block a user