mirror of
https://github.com/Xevion/RimWorld-Hydroponics-Expanded.git
synced 2025-12-06 19:16:14 -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;
|
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.
|
// Otherwise, we move the plant underground.
|
||||||
plant.DeSpawn();
|
plant.DeSpawn();
|
||||||
TryAcceptThing(plant);
|
TryAcceptThing(plant);
|
||||||
|
|
||||||
// Recalculate capacity.
|
// Recalculate if capacity was reached
|
||||||
capacityReached = _innerContainer.Count >= _capacity;
|
capacityReached = _innerContainer.Count >= _capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user