Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/wire/stools/hydraulic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function TOOL:RightClick( trace )
end
local trace2 = util.TraceLine( tr )

if CLIENT or not WireLib.CanTool(self:GetOwner(), trace2.Entity, "wire_hydraulic") then return false end
if CLIENT or not trace2.Entity:IsValid() or not WireLib.CanTool(self:GetOwner(), trace2.Entity, "wire_hydraulic") then return false end

return self:LeftClick(trace) and self:LeftClick(trace2)
end
Expand Down
Loading