From e26bcd56eba3620eac91639051d5562adb98e66f Mon Sep 17 00:00:00 2001 From: Anton Dorozhkin Date: Mon, 30 Mar 2026 12:53:00 +0700 Subject: [PATCH] Restore applyTorque clamp The previous commit accidentally removed the torque clamp. This one restores it. --- lua/entities/gmod_wire_expression2/core/entity.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/entities/gmod_wire_expression2/core/entity.lua b/lua/entities/gmod_wire_expression2/core/entity.lua index 9b1d8cb705..ed22863aa1 100644 --- a/lua/entities/gmod_wire_expression2/core/entity.lua +++ b/lua/entities/gmod_wire_expression2/core/entity.lua @@ -734,6 +734,7 @@ e2function void entity:applyTorque(vector torque) if not validPhysics(this) then return self:throw("Invalid physics object!", nil) end if not isOwner(self, this) then return self:throw("You do not own this entity!", nil) end if torque:IsZero() then return end + torque = clamp(torque) local phys = this:GetPhysicsObject()