Fix solution visualization after drawing with a whitelist (#36657)

This commit is contained in:
pathetic meowmeow
2025-04-29 09:18:07 -04:00
committed by GitHub
parent 5ef74728c9
commit 74a8bb9509

View File

@@ -369,7 +369,7 @@ public sealed class InjectorSystem : SharedInjectorSystem
var removedSolution = SolutionContainers.Draw(target.Owner, targetSolution, realTransferAmount); var removedSolution = SolutionContainers.Draw(target.Owner, targetSolution, realTransferAmount);
// Add back non-whitelisted reagents to the target solution // Add back non-whitelisted reagents to the target solution
applicableTargetSolution.AddSolution(temporarilyRemovedSolution, null); SolutionContainers.TryAddSolution(targetSolution, temporarilyRemovedSolution);
if (!SolutionContainers.TryAddSolution(soln.Value, removedSolution)) if (!SolutionContainers.TryAddSolution(soln.Value, removedSolution))
{ {