Merge pull request #22 from slaVACo/patch-1

Update keypad_willox.lua
This commit is contained in:
William Wallace 2019-01-07 20:03:55 +00:00 committed by GitHub
commit 527dbc40db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ function TOOL:SetupKeypad(ent, pass)
end
function TOOL:RightClick(tr)
if not IsValid(tr.Entity) or not tr.Entity:GetClass():lower() == "keypad" then return false end
if not IsValid(tr.Entity) or tr.Entity:GetClass():lower() != "keypad" then return false end
if CLIENT then return true end
@ -82,7 +82,6 @@ function TOOL:RightClick(tr)
ply:PrintMessage(3, "Invalid password!")
return false
end
if trace_ent:GetKeypadOwner() == ply then
self:SetupKeypad(trace_ent, password)