Fix PAI throwing (#6621)
This commit is contained in:
parent
39d1286420
commit
6dfb95e3cf
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue