Botany produce fix (#622)
https://github.com/space-wizards/space-station-14/pull/27210
This commit is contained in:
committed by
GitHub
parent
aa8dc511da
commit
c9b7cfd868
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user