Open ZzZombo opened 1 year ago
It's... literally a copy and paste of the code in WorkGiver_GrowerSow...
When does that error pop up?
Oh, sorry then. It appears "Local Growing First" is to blame then. It happens if you try to bring the context menu on any (vanilla?) growing zone.
https://github.com/juanosarg/VanillaPlantsExpanded-MorePlants/blob/a024b0dbad19ec9ee1eb8d0721c5368092856a13/1.3/Source/VanillaPlantsExpandedMorePlants/VanillaPlantsExpandedMorePlants/AI/Aquatic/WorkGiver_GrowerSowAquatic.cs#L47
If the growing zone is not an aquatic, then it is assumed to be a thing, lacking handling for the more likely case it's a different growing zone, such as the vanilla one.
Exception info
``` Root level exception in OnGUI(): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. at VanillaPlantsExpandedMorePlants.WorkGiver_GrowerSowAquatic.ExtraRequirements (RimWorld.IPlantToGrowSettable settable, Verse.Pawn pawn) [0x0004a] in <8bf2e52d588c47c38ae1c79f2ae0e802>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in