fix: cryo pod autoinjection works once again. (#13213)
This commit is contained in:
@@ -89,10 +89,7 @@ public sealed partial class CryoPodSystem: SharedCryoPodSystem
|
|||||||
continue;
|
continue;
|
||||||
cryoPod.NextInjectionTime = curTime + TimeSpan.FromSeconds(cryoPod.BeakerTransferTime);
|
cryoPod.NextInjectionTime = curTime + TimeSpan.FromSeconds(cryoPod.BeakerTransferTime);
|
||||||
|
|
||||||
if (
|
if (!itemSlotsQuery.TryGetComponent(cryoPod.Owner, out var itemSlotsComponent))
|
||||||
!itemSlotsQuery.TryGetComponent(cryoPod.Owner, out var itemSlotsComponent)
|
|
||||||
|| !fitsInDispenserQuery.TryGetComponent(cryoPod.Owner, out var fitsInDispenserComponent)
|
|
||||||
|| !solutionContainerManagerQuery.TryGetComponent(cryoPod.Owner, out var solutionContainerManagerComponent))
|
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -101,6 +98,9 @@ public sealed partial class CryoPodSystem: SharedCryoPodSystem
|
|||||||
if (container != null
|
if (container != null
|
||||||
&& container.Value.Valid
|
&& container.Value.Valid
|
||||||
&& patient != null
|
&& 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))
|
&& _solutionContainerSystem.TryGetFitsInDispenser(container.Value, out var containerSolution, dispenserFits: fitsInDispenserComponent, solutionManager: solutionContainerManagerComponent))
|
||||||
{
|
{
|
||||||
if (!bloodStreamQuery.TryGetComponent(patient, out var bloodstream))
|
if (!bloodStreamQuery.TryGetComponent(patient, out var bloodstream))
|
||||||
|
|||||||
Reference in New Issue
Block a user