MySeedItemDefinition is prohibited

Merii shared this bug 24 hours ago
Submitted

I maintain a cargo sorting mod for SE1, and I'm trying to add support for the new seed and food items.


Generally how I build lists of "what stuff is" is by the definition type - e.g. `definition is MyComponentDefinition` which lives in the whitelisted namespace Sandbox.Definitions.


The seeds are not in the correct namespace. The MySeedItemDefinition type is in SpaceEngineers.Game.Definitions, which is not whitelisted, and when referenced, produces the following error:

Error: The type or member 'MySeedItemDefinition' is prohibited

The expected behavior is that the type is exposed to the modding framework and I can reference it in my mod code.

MyObjectBuilder_SeedItemDefinition is similarly not exposed correctly, so I can't fall back to `definition.Id.TypeId == typeof(MyObjectBuilder_SeedItemDefinition)` either.

Leave a Comment
 
Attach a file