From 9b66af1d66af6e09a6d3bd14b65ed51d46ef6085 Mon Sep 17 00:00:00 2001 From: Astralcircle <142503363+Astralcircle@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:00:31 +0300 Subject: [PATCH] Fix nil error --- lua/wire/stools/hydraulic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/wire/stools/hydraulic.lua b/lua/wire/stools/hydraulic.lua index eaf0346751..c7cf6ed716 100644 --- a/lua/wire/stools/hydraulic.lua +++ b/lua/wire/stools/hydraulic.lua @@ -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