From: beck-thompson <107373427+beck-thompson@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:48:11 +0000 (-0800) Subject: Fixed: Ore now correctly drops the right amount of ore (#34557) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=dd252e627777e77a409727259101cbcbecdfefff;p=space-station-14.git Fixed: Ore now correctly drops the right amount of ore (#34557) Fixed bug --- diff --git a/Content.Server/Mining/MiningSystem.cs b/Content.Server/Mining/MiningSystem.cs index 18e96e5769..6b1b0fed4d 100644 --- a/Content.Server/Mining/MiningSystem.cs +++ b/Content.Server/Mining/MiningSystem.cs @@ -35,7 +35,7 @@ public sealed class MiningSystem : EntitySystem return; var coords = Transform(uid).Coordinates; - var toSpawn = _random.Next(proto.MinOreYield, proto.MaxOreYield); + var toSpawn = _random.Next(proto.MinOreYield, proto.MaxOreYield+1); for (var i = 0; i < toSpawn; i++) { Spawn(proto.OreEntity, coords.Offset(_random.NextVector2(0.2f)));