From 33e2eac161f11da43e63dba1fdc8cdfb5870ced4 Mon Sep 17 00:00:00 2001 From: Kill_Me_I_Noobs <118206719+Vonsant@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:47:44 +0300 Subject: [PATCH] Update Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs Co-authored-by: FN <37689533+FireNameFN@users.noreply.github.com> --- .../Chemistry/EntitySystems/ReagentDispenserSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs b/Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs index 9c9e654d3b7..4d51154d6e9 100644 --- a/Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs @@ -69,7 +69,7 @@ private void OnEntInserted(Entity ent, ref EntInserte if (ent.Comp.AutoLabel && _solutionContainerSystem.TryGetDrainableSolution(ev.Entity, out _, out var sol)) { ReagentId? reagentId = sol.GetPrimaryReagentId(); - if (reagentId != null && _prototypeManager.TryIndex(reagentId.Value.Prototype, out var reagent)) + if (reagentId is not null && _prototypeManager.TryIndex(reagentId.Value.Prototype, out var reagent)) { var reagentQuantity = sol.GetReagentQuantity(reagentId.Value); var totalQuantity = sol.Volume;