From 21cc60bcb9823279250d265500d979963577c26a Mon Sep 17 00:00:00 2001 From: Francesco Date: Fri, 30 Dec 2022 15:34:59 +0100 Subject: [PATCH] fix: cryo pod autoinjection works once again. (#13213) --- Content.Server/Medical/CryoPodSystem.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.Server/Medical/CryoPodSystem.cs b/Content.Server/Medical/CryoPodSystem.cs index e3ba596258..67d7e34222 100644 --- a/Content.Server/Medical/CryoPodSystem.cs +++ b/Content.Server/Medical/CryoPodSystem.cs @@ -89,10 +89,7 @@ public sealed partial class CryoPodSystem: SharedCryoPodSystem continue; cryoPod.NextInjectionTime = curTime + TimeSpan.FromSeconds(cryoPod.BeakerTransferTime); - if ( - !itemSlotsQuery.TryGetComponent(cryoPod.Owner, out var itemSlotsComponent) - || !fitsInDispenserQuery.TryGetComponent(cryoPod.Owner, out var fitsInDispenserComponent) - || !solutionContainerManagerQuery.TryGetComponent(cryoPod.Owner, out var solutionContainerManagerComponent)) + if (!itemSlotsQuery.TryGetComponent(cryoPod.Owner, out var itemSlotsComponent)) { continue; } @@ -101,6 +98,9 @@ public sealed partial class CryoPodSystem: SharedCryoPodSystem if (container != null && container.Value.Valid && patient != null + && fitsInDispenserQuery.TryGetComponent(container, out var fitsInDispenserComponent) + && solutionContainerManagerQuery.TryGetComponent(container, + out var solutionContainerManagerComponent) && _solutionContainerSystem.TryGetFitsInDispenser(container.Value, out var containerSolution, dispenserFits: fitsInDispenserComponent, solutionManager: solutionContainerManagerComponent)) { if (!bloodStreamQuery.TryGetComponent(patient, out var bloodstream))