fix syringe overdrawing (#12298)
This commit is contained in:
@@ -394,8 +394,8 @@ public sealed partial class ChemistrySystem
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get transfer amount. May be smaller than _transferAmount if not enough room
|
// Get transfer amount. May be smaller than _transferAmount if not enough room, also make sure there's room in the injector
|
||||||
var realTransferAmount = FixedPoint2.Min(component.TransferAmount, targetSolution.DrawAvailable);
|
var realTransferAmount = FixedPoint2.Min(component.TransferAmount, targetSolution.DrawAvailable, solution.AvailableVolume);
|
||||||
|
|
||||||
if (realTransferAmount <= 0)
|
if (realTransferAmount <= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user