mirror of
https://github.com/willox/gmod-keypad.git
synced 2025-03-04 03:13:31 -05:00
commit
527dbc40db
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user