Ensure plants always have some reagents after crossing (#20078)

This commit is contained in:
drteaspoon420
2023-09-12 22:40:11 +03:00
committed by GitHub
parent 1986ca86f4
commit a7980be623

View File

@@ -319,12 +319,15 @@ public sealed class MutationSystem : EntitySystem
if (!other.ContainsKey(this_chem.Key))
{
if (Random(0.5f))
{
if (val.Count > 1)
{
val.Remove(this_chem.Key);
}
}
}
}
}
private void CrossGasses(ref Dictionary<Gas, float> val, Dictionary<Gas, float> other)
{