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

@@ -320,7 +320,10 @@ public sealed class MutationSystem : EntitySystem
{ {
if (Random(0.5f)) if (Random(0.5f))
{ {
val.Remove(this_chem.Key); if (val.Count > 1)
{
val.Remove(this_chem.Key);
}
} }
} }
} }