From a766faa2d4da7a2a6c81c017ef6e058f30693987 Mon Sep 17 00:00:00 2001 From: thegrb93 Date: Sat, 6 Jan 2024 17:47:20 -0500 Subject: [PATCH] Fix direction not being set after duping (#2970) --- lua/entities/gmod_wire_wheel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/entities/gmod_wire_wheel.lua b/lua/entities/gmod_wire_wheel.lua index fd7ff743ba..f22536d645 100644 --- a/lua/entities/gmod_wire_wheel.lua +++ b/lua/entities/gmod_wire_wheel.lua @@ -27,8 +27,8 @@ function ENT:Setup(fwd, bck, stop, torque, direction, axis) self.fwd = fwd self.bck = bck self.stop = stop - if torque then self:SetTorque(math.max(1, torque)) end if direction then self:SetDirection( direction ) end + if torque then self:SetTorque(math.max(1, torque)) end if axis then self.Axis = axis end self:UpdateOverlayText()