mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
feat(hooks): add 'Hook_CanDetachAttachment' to prevent attachment detaching
This commit is contained in:
parent
a962cf1edf
commit
1c081c3437
@ -602,6 +602,8 @@ function SWEP:CanDetach(addr)
|
||||
|
||||
if slottbl and slottbl.Integral then return false end
|
||||
|
||||
if self:RunHook("Hook_CanDetachAttachment", {addr = addr, slottbl = slottbl}) == false then return false end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user