Fix mob throwing (#9775)

This commit is contained in:
metalgearsloth
2022-07-16 13:04:14 +10:00
committed by GitHub
parent 96f0a9fc4c
commit 4e16efc37f

View File

@@ -46,7 +46,7 @@ public sealed class ThrowingSystem : EntitySystem
if (physics == null && !physicsQuery.Value.TryGetComponent(uid, out physics))
return;
if (physics.BodyType != BodyType.Dynamic)
if ((physics.BodyType & (BodyType.Dynamic | BodyType.KinematicController)) == 0x0)
{
Logger.Warning($"Tried to throw entity {ToPrettyString(uid)} but can't throw {physics.BodyType} bodies!");
return;