Fixed: Ore now correctly drops the right amount of ore (#34557)

Fixed bug
This commit is contained in:
beck-thompson
2025-01-30 09:48:11 -08:00
committed by GitHub
parent 992d69549d
commit dd252e6277

View 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)));