From 1360d57eea3938ee61899e03f0b5e2aefd425ea9 Mon Sep 17 00:00:00 2001 From: genderGeometries <159584039+genderGeometries@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:19:50 -0500 Subject: [PATCH] Crop harvest int cast fix (#25453) * deleted int cast on solution amount * deleted int cast on solution amount for real --- Content.Server/Botany/Systems/BotanySystem.Produce.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }