Update keypad_willox.lua

fixed spam error
This commit is contained in:
slaVACo 2019-01-08 00:36:15 +05:00 committed by GitHub
parent 14c7691a5a
commit 122d8a9c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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