forked from willox/gmod-keypad
Update keypad_willox.lua
fixed spam error
This commit is contained in:
parent
14c7691a5a
commit
122d8a9c3c
@ -83,7 +83,7 @@ function TOOL:RightClick(tr)
|
||||
return false
|
||||
end
|
||||
|
||||
if trace_ent:GetKeypadOwner() == ply then
|
||||
if trace_ent:GetClass() == 'keypad' and trace_ent:GetKeypadOwner() == ply then
|
||||
self:SetupKeypad(trace_ent, password)
|
||||
|
||||
return true
|
||||
@ -202,4 +202,4 @@ if CLIENT then
|
||||
|
||||
CPanel:Help("You can enter your password with your numpad when numlock is enabled!")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user