From 9e4d19118900d31270f2c725da684a95137fb9cb Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Sat, 15 Jun 2024 02:42:40 +0000 Subject: [PATCH] make RefillableSolution optional for SolutionTransfer (#28830) Co-authored-by: deltanedas <@deltanedas:kde.org> --- .../Chemistry/EntitySystems/SolutionTransferSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Chemistry/EntitySystems/SolutionTransferSystem.cs b/Content.Shared/Chemistry/EntitySystems/SolutionTransferSystem.cs index b12778262c..93e9765b16 100644 --- a/Content.Shared/Chemistry/EntitySystems/SolutionTransferSystem.cs +++ b/Content.Shared/Chemistry/EntitySystems/SolutionTransferSystem.cs @@ -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)}"); -- 2.51.2