mirror of
https://github.com/Xevion/RimWorld-Hydroponics-Expanded.git
synced 2025-12-06 11:16:15 -06:00
Fix incomplete sown plants from being improperly added
Very confusing error without documentation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user