diff --git a/LethalCompanyInputUtils/Api/LcInputActions.cs b/LethalCompanyInputUtils/Api/LcInputActions.cs index cc03965..cdf330d 100644 --- a/LethalCompanyInputUtils/Api/LcInputActions.cs +++ b/LethalCompanyInputUtils/Api/LcInputActions.cs @@ -35,10 +35,12 @@ public abstract class LcInputActions protected virtual string MapName => GetType().Name; - protected LcInputActions() + protected LcInputActions() : this(Assembly.GetCallingAssembly().GetBepInPlugin()) {} + + protected LcInputActions(BepInPlugin? plugin) { Asset = ScriptableObject.CreateInstance(); - Plugin = Assembly.GetCallingAssembly().GetBepInPlugin() ?? throw new InvalidOperationException(); + Plugin = plugin ?? throw new InvalidOperationException(); var mapBuilder = new InputActionMapBuilder(Id);