Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lua/entities/gmod_wire_expression2/core/entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Loading