Fixed: Ore now correctly drops the right amount of ore (#34557)
Fixed bug
This commit is contained in:
@@ -35,7 +35,7 @@ public sealed class MiningSystem : EntitySystem
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var coords = Transform(uid).Coordinates;
|
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++)
|
for (var i = 0; i < toSpawn; i++)
|
||||||
{
|
{
|
||||||
Spawn(proto.OreEntity, coords.Offset(_random.NextVector2(0.2f)));
|
Spawn(proto.OreEntity, coords.Offset(_random.NextVector2(0.2f)));
|
||||||
|
|||||||
Reference in New Issue
Block a user