Skip to content

Commit 3d7d078

Browse files
authored
getmodules fix maybe
1 parent 062ca7c commit 3d7d078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EIV_Modules/Extensions/ModuleExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static T GetModule<T>(this object obj) where T : IModule
1111

1212
public static List<T> GetModules<T>(this object obj) where T : IModule
1313
{
14-
return (List<T>)ModuleSub.GetModuleList?.Invoke(obj, typeof(T));
14+
return (List<T>)ModuleSub.GetModuleList?.Invoke(obj, typeof(T)).Select(x => x as T);
1515
}
1616

1717
public static bool TryGetModule<T>(this object obj, out T out_t) where T : IModule

0 commit comments

Comments
 (0)