emag disposal units to disable pressure requirement (#14630)

This commit is contained in:
deltanedas
2023-03-23 14:55:49 +00:00
committed by GitHub
parent 21e5aea8ca
commit 52af530d61
3 changed files with 19 additions and 2 deletions

View File

@@ -552,8 +552,11 @@ namespace Content.Server.Disposal.Unit.EntitySystems
component.AutomaticEngageToken?.Cancel();
component.AutomaticEngageToken = null;
component.Pressure = 0;
component.State = SharedDisposalUnitComponent.PressureState.Pressurizing;
if (!component.DisablePressure)
{
component.Pressure = 0;
component.State = SharedDisposalUnitComponent.PressureState.Pressurizing;
}
component.Engaged = false;