]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed: Ore now correctly drops the right amount of ore (#34557)
authorbeck-thompson <107373427+beck-thompson@users.noreply.github.com>
Thu, 30 Jan 2025 17:48:11 +0000 (09:48 -0800)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2025 17:48:11 +0000 (18:48 +0100)
Fixed bug

Content.Server/Mining/MiningSystem.cs

index 18e96e576962c31e0e5f45e94f8b1ba1475b1f9d..6b1b0fed4d8ca482bb1a6b69288a8417b8d42cad 100644 (file)
@@ -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)));