]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Crop harvest int cast fix (#25453)
authorgenderGeometries <159584039+genderGeometries@users.noreply.github.com>
Thu, 22 Feb 2024 00:19:50 +0000 (19:19 -0500)
committerGitHub <noreply@github.com>
Thu, 22 Feb 2024 00:19:50 +0000 (11:19 +1100)
* deleted int cast on solution amount

* deleted int cast on solution amount for real

Content.Server/Botany/Systems/BotanySystem.Produce.cs

index 788c09821b21915670b3bf08fc31b8e428306cc9..e309fb47720db3f43c6b9a516f0d5bb7a19b16d8 100644 (file)
@@ -18,7 +18,7 @@ public sealed partial class BotanySystem
             var amount = FixedPoint2.New(quantity.Min);
             if (quantity.PotencyDivisor > 0 && seed.Potency > 0)
                 amount += FixedPoint2.New(seed.Potency / quantity.PotencyDivisor);
-            amount = FixedPoint2.New((int) MathHelper.Clamp(amount.Float(), quantity.Min, quantity.Max));
+            amount = FixedPoint2.New(MathHelper.Clamp(amount.Float(), quantity.Min, quantity.Max));
             solutionContainer.MaxVolume += amount;
             solutionContainer.AddReagent(chem, amount);
         }