From: genderGeometries <159584039+genderGeometries@users.noreply.github.com> Date: Thu, 22 Feb 2024 00:19:50 +0000 (-0500) Subject: Crop harvest int cast fix (#25453) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=1360d57eea3938ee61899e03f0b5e2aefd425ea9;p=space-station-14.git Crop harvest int cast fix (#25453) * deleted int cast on solution amount * deleted int cast on solution amount for real --- diff --git a/Content.Server/Botany/Systems/BotanySystem.Produce.cs b/Content.Server/Botany/Systems/BotanySystem.Produce.cs index 788c09821b..e309fb4772 100644 --- a/Content.Server/Botany/Systems/BotanySystem.Produce.cs +++ b/Content.Server/Botany/Systems/BotanySystem.Produce.cs @@ -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); }