From 6dfb95e3cf06b9f25f2de8ea218e355aebf919ca Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 10 Feb 2022 21:05:13 +1100 Subject: [PATCH] Fix PAI throwing (#6621) --- Content.Server/Throwing/ThrowHelper.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Content.Server/Throwing/ThrowHelper.cs b/Content.Server/Throwing/ThrowHelper.cs index e5081d6364..7db9be2c96 100644 --- a/Content.Server/Throwing/ThrowHelper.cs +++ b/Content.Server/Throwing/ThrowHelper.cs @@ -41,15 +41,9 @@ namespace Content.Server.Throwing return; } - if (physicsComponent.BodyType == BodyType.Static) + if (physicsComponent.BodyType != BodyType.Dynamic) { - Logger.Warning("Tried to throw entity {entity} but can't throw static bodies!"); - return; - } - - if (entities.HasComponent(entity)) - { - Logger.Warning("Throwing not supported for mobs!"); + Logger.Warning($"Tried to throw entity {entities.ToPrettyString(entity)} but can't throw {physicsComponent.BodyType} bodies!"); return; }