Skip to content

Commit

Permalink
Fix no stun on exit test fail
Browse files Browse the repository at this point in the history
DrSmugleaf committed Dec 24, 2024
1 parent 5741b9a commit 655c0e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Shared/_RMC14/Storage/RMCStorageSystem.cs
Original file line number Diff line number Diff line change
@@ -187,6 +187,9 @@ private void OnBlockInsertIntoEntityStorageAttempt(Entity<BlockEntityStorageComp

private void OnRemovedMarineFromContainer(Entity<MarineComponent> ent, ref EntGotRemovedFromContainerMessage args)
{
if (TerminatingOrDeleted(ent))
return;

if (!HasComp<NoStunOnExitComponent>(args.Container.Owner) && _timing.IsFirstTimePredicted)
_stun.TryStun(ent, STUN_STORAGE, true);
}

0 comments on commit 655c0e9

Please sign in to comment.