Skip to content

Commit 659e839

Browse files
andymac-2Andrew Pritchard
andauthored
Fix module registration. (#166)
Co-authored-by: Andrew Pritchard <[email protected]>
1 parent e5139b3 commit 659e839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RasterPropMonitor/Core/IJSIModule.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ public IJSIModule(Vessel v)
4343

4444
internal static void CreateJSIModules(List<IJSIModule> modules, Vessel v)
4545
{
46+
object[] constructorArgs = new[] { v };
4647
foreach (Type t in x_registeredTypes)
4748
{
4849
try
4950
{
50-
modules.Add((IJSIModule)Activator.CreateInstance(t, v));
51+
modules.Add((IJSIModule)Activator.CreateInstance(t, constructorArgs));
5152
}
5253
catch (Exception e)
5354
{

0 commit comments

Comments
 (0)