AinaVT / LethalConfig

A mod configuration menu for Lethal Company
https://thunderstore.io/c/lethal-company/p/AinaVT/LethalConfig/
GNU General Public License v3.0
15 stars 6 forks source link

Exception when getting types for certain assemblies #24

Closed AinaVT closed 9 months ago

AinaVT commented 9 months ago

When searching for the BepInPlugin for some assemblies, calling GetTypes() sometimes throws an exception if the assembly in question requires loading another assembly, most likely a soft dependency. This interrupts the process of building the UI, and only shows the items up to that assembly.

Example of this happening is using TooManyEmotes without InputUtils: trying to get the types for TooManyEmotes throws an exception because it attempts to load InputUtils when it's not there.