Skip to content

Commit

Permalink
Update Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: FN <[email protected]>
  • Loading branch information
Vonsant and FireNameFN authored Dec 19, 2024
1 parent db5eec3 commit 33e2eac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void OnEntInserted(Entity<ReagentDispenserComponent> ent, ref EntInserte
if (ent.Comp.AutoLabel && _solutionContainerSystem.TryGetDrainableSolution(ev.Entity, out _, out var sol))
{
ReagentId? reagentId = sol.GetPrimaryReagentId();
if (reagentId != null && _prototypeManager.TryIndex<ReagentPrototype>(reagentId.Value.Prototype, out var reagent))
if (reagentId is not null && _prototypeManager.TryIndex<ReagentPrototype>(reagentId.Value.Prototype, out var reagent))
{
var reagentQuantity = sol.GetReagentQuantity(reagentId.Value);
var totalQuantity = sol.Volume;
Expand Down

0 comments on commit 33e2eac

Please sign in to comment.