* fix

* Update wheat.yml

* Update CP14FarmingSystem.Interactions.cs
This commit is contained in:
Ed
2024-08-23 00:42:27 +03:00
committed by GitHub
parent 3850317a37
commit ea9c6ee7bf
4 changed files with 10 additions and 4 deletions

View File

@@ -71,8 +71,11 @@ public sealed partial class CP14FarmingSystem
continue;
var spawnLoot = getLoot.GetSpawns(_random);
var spawnPos = pos.Offset(_random.NextVector2(gatheredPlant.Comp.GatherOffset));
result.Add(Spawn(spawnLoot[0], spawnPos)); //TODO почему то не спавнится больше 1 пшенички. Кажись проблема оффов
foreach (var loot in spawnLoot)
{
var spawnPos = pos.Offset(_random.NextVector2(gatheredPlant.Comp.GatherOffset));
result.Add(Spawn(loot, spawnPos));
}
}
if (gatheredPlant.Comp.DeleteAfterHarvest)