Fix PAI throwing (#6621)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user