Add govnocod

This commit is contained in:
Aviu00
2024-01-21 08:56:32 +03:00
parent 681b3dce36
commit 29f58aa28f
3 changed files with 25 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ using Content.Shared.Damage.Systems;
using Content.Shared.Database;
using Content.Shared.Effects;
using Content.Shared.Mobs.Components;
using Content.Shared.Projectiles;
using Content.Shared.Throwing;
using Robust.Shared.Physics.Components;
using Robust.Shared.Player;
@@ -62,7 +63,7 @@ namespace Content.Server.Damage.Systems
}
// TODO: If more stuff touches this then handle it after.
if (TryComp<PhysicsComponent>(uid, out var physics))
if (!HasComp<EmbeddableProjectileComponent>(uid) && TryComp<PhysicsComponent>(uid, out var physics)) // WD EDIT
{
_thrownItem.LandComponent(args.Thrown, args.Component, physics, false);
}