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;