Fix PAI throwing (#6621)

This commit is contained in:
metalgearsloth
2022-02-10 21:05:13 +11:00
committed by GitHub
parent 39d1286420
commit 6dfb95e3cf

View File

@@ -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<MobStateComponent>(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;
}