]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
make RefillableSolution optional for SolutionTransfer (#28830)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Sat, 15 Jun 2024 02:42:40 +0000 (02:42 +0000)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 02:42:40 +0000 (22:42 -0400)
Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Shared/Chemistry/EntitySystems/SolutionTransferSystem.cs

index b12778262c8a445447de5157a1bf2425009aea1f..93e9765b1640dfc4deaf97f3b19cc55f30369907 100644 (file)
@@ -193,7 +193,7 @@ public sealed class SolutionTransferSystem : EntitySystem
         var actualAmount = FixedPoint2.Min(amount, FixedPoint2.Min(sourceSolution.Volume, targetSolution.AvailableVolume));
 
         var solution = _solution.SplitSolution(source, actualAmount);
-        _solution.Refill(targetEntity, target, solution);
+        _solution.AddSolution(target, solution);
 
         _adminLogger.Add(LogType.Action, LogImpact.Medium,
             $"{ToPrettyString(user):player} transferred {SharedSolutionContainerSystem.ToPrettyString(solution)} to {ToPrettyString(targetEntity):target}, which now contains {SharedSolutionContainerSystem.ToPrettyString(targetSolution)}");