Botany produce fix (#622)

https://github.com/space-wizards/space-station-14/pull/27210
This commit is contained in:
RedBurningPhoenix
2024-08-15 17:16:00 +05:00
committed by GitHub
parent aa8dc511da
commit c9b7cfd868
2 changed files with 25 additions and 7 deletions

View File

@@ -518,10 +518,10 @@ public sealed class PlantHolderSystem : EntitySystem
var environment = _atmosphere.GetContainingMixture(uid, true, true) ?? GasMixture.SpaceGas;
component.MissingGas = 0;
if (component.Seed.ConsumeGasses.Count > 0)
{
component.MissingGas = 0;
foreach (var (gas, amount) in component.Seed.ConsumeGasses)
{
if (environment.GetMoles(gas) < amount)