Skip to content

Commit

Permalink
fix ChemMasterComponent - transfer reagents to container
Browse files Browse the repository at this point in the history
  • Loading branch information
Shegare committed Dec 19, 2024
1 parent 03cea71 commit 196314d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Chemistry/EntitySystems/ChemMasterSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private void TransferReagents(Entity<ChemMasterComponent> chemMaster, ReagentId
return;
}

amount = FixedPoint2.Min(amount, bufferSolution.GetReagentQuantity(id));
amount = FixedPoint2.Min(amount, containerSolution.AvailableVolume);
bufferSolution.RemoveReagent(id, amount);
_solutionContainerSystem.TryAddReagent(containerSoln.Value, id, amount, out var _);

Expand Down

0 comments on commit 196314d

Please sign in to comment.