mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Fix SOME test fails (#4588)
* Increase SpawnAndDeleteAllEntitiesOnDifferentMaps test simulation time (#38901) wait longer * Reduce LevelOfParallelism to 2 for integration tests (#39566) less paralelliism * Fix Assumption of Nullable to have value (#41220) * Fix Potential Test Fail * Please the maintainer gods --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
co-authored by
slarticodefast
parent
94aeb47feb
commit
63eb235e94
@@ -94,11 +94,11 @@ public abstract partial class SharedProjectileSystem : EntitySystem
|
||||
EmbedAttach(embeddable, args.Target, args.Shooter, embeddable.Comp);
|
||||
|
||||
// Raise a specific event for projectiles.
|
||||
if (TryComp(embeddable, out ProjectileComponent? projectile))
|
||||
{
|
||||
var ev = new ProjectileEmbedEvent(projectile.Shooter!.Value, projectile.Weapon!.Value, args.Target);
|
||||
RaiseLocalEvent(embeddable, ref ev);
|
||||
}
|
||||
if (!TryComp<ProjectileComponent>(embeddable, out var projectile))
|
||||
return;
|
||||
|
||||
var ev = new ProjectileEmbedEvent(projectile.Shooter, projectile.Weapon, args.Target);
|
||||
RaiseLocalEvent(embeddable, ref ev);
|
||||
}
|
||||
|
||||
private void EmbedAttach(EntityUid uid, EntityUid target, EntityUid? user, EmbeddableProjectileComponent component)
|
||||
|
||||
Reference in New Issue
Block a user