Fix direction not being set after duping (#2970)

This commit is contained in:
thegrb93 2024-01-06 17:47:20 -05:00 committed by GitHub
parent e1b30fb964
commit a766faa2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()