Retractable items system + Arm Blade action (#38150)

This commit is contained in:
ScarKy0
2025-06-14 20:29:06 +02:00
committed by GitHub
parent 635ea4b2b4
commit 208b245dcb
13 changed files with 243 additions and 6 deletions

View File

@@ -215,7 +215,10 @@ namespace Content.Shared.Interaction
/// </summary>
private void OnRemoveAttempt(EntityUid uid, UnremoveableComponent item, ContainerGettingRemovedAttemptEvent args)
{
args.Cancel();
// don't prevent the server state for the container from being applied to the client correctly
// otherwise this will cause an error if the client predicts adding UnremoveableComponent
if (!_gameTiming.ApplyingState)
args.Cancel();
}
/// <summary>