Skip to content

Commit

Permalink
Fix nil error
Browse files Browse the repository at this point in the history
  • Loading branch information
Astralcircle authored Oct 15, 2024
1 parent 766c32b commit 9b66af1
Showing 1 changed file with 1 addition and 1 deletion.
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 not WireLib.CanTool(self:GetOwner(), trace2.Entity, "wire_hydraulic") then return false end
if SERVER and not WireLib.CanTool(self:GetOwner(), trace2.Entity, "wire_hydraulic") then return false end

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

0 comments on commit 9b66af1

Please sign in to comment.