From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 13 May 2023 13:45:59 +0000 (+1000) Subject: Fix throwing non-hard entities (#16389) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=17f217a4a3c05119471076e647a76165d3bc1f73;p=space-station-14.git Fix throwing non-hard entities (#16389) --- diff --git a/Content.Shared/Throwing/ThrowingSystem.cs b/Content.Shared/Throwing/ThrowingSystem.cs index 3035411148..44cfdc33fb 100644 --- a/Content.Shared/Throwing/ThrowingSystem.cs +++ b/Content.Shared/Throwing/ThrowingSystem.cs @@ -93,7 +93,7 @@ public sealed class ThrowingSystem : EntitySystem comp.Thrower = user; // Give it a l'il spin. - if (!tagQuery.TryGetComponent(uid, out var tag) || !_tagSystem.HasTag(tag, "NoSpinOnThrow")) + if (physics.InvI > 0f && (!tagQuery.TryGetComponent(uid, out var tag) || !_tagSystem.HasTag(tag, "NoSpinOnThrow"))) _physics.ApplyAngularImpulse(uid, ThrowAngularImpulse / physics.InvI, body: physics); else transform.LocalRotation = direction.ToWorldAngle() - Math.PI;