Fix incomplete sown plants from being improperly added

Very confusing error without documentation
This commit is contained in:
2023-07-16 01:24:28 -05:00
parent fa41cc7420
commit cc7182fdbe

View File

@@ -57,11 +57,15 @@ namespace HydroponicsExpanded {
continue;
}
// When plants are being sown, they are invisible, but we want to wait until they are sown before adding them to the internal container.
if (plant.LifeStage == PlantLifeStage.Sowing)
continue;
// Otherwise, we move the plant underground.
plant.DeSpawn();
TryAcceptThing(plant);
// Recalculate capacity.
// Recalculate if capacity was reached
capacityReached = _innerContainer.Count >= _capacity;
}