diff --git a/lua/weapons/gmod_tool/stools/keypad_willox.lua b/lua/weapons/gmod_tool/stools/keypad_willox.lua index de5a524..6dcd25a 100644 --- a/lua/weapons/gmod_tool/stools/keypad_willox.lua +++ b/lua/weapons/gmod_tool/stools/keypad_willox.lua @@ -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) @@ -202,4 +201,4 @@ if CLIENT then CPanel:Help("You can enter your password with your numpad when numlock is enabled!") end -end \ No newline at end of file +end