Patch 1.9 (#39)

* Возьми ее на руки и скажи...

* tweaks
This commit is contained in:
rhailrake
2023-05-10 01:11:06 +06:00
committed by Aviu00
parent 26c6290be0
commit 2f055d1aed
27 changed files with 495 additions and 40 deletions

View File

@@ -3,6 +3,7 @@ using System.Linq;
using Content.Server.Administration.Logs;
using Content.Server.Atmos.EntitySystems;
using Content.Server.Disposal.Tube;
using Content.Server.Carrying;
using Content.Server.Disposal.Tube.Components;
using Content.Server.Disposal.Unit.Components;
using Content.Server.Popups;
@@ -503,6 +504,9 @@ public sealed class DisposalUnitSystem : SharedDisposalUnitSystem
if (!CanInsert(unitId, unit, toInsertId))
return false;
if (HasComp<CarryingComponent>(toInsertId))
return false;
bool insertingSelf = userId == toInsertId;
var delay = insertingSelf ? unit.EntryDelay : unit.DraggedEntryDelay;