Skip to content

Commit

Permalink
Merge pull request #6 from Carnagion/development
Browse files Browse the repository at this point in the history
Merge v2.0.1 into stable
  • Loading branch information
Carnagion committed Aug 17, 2022
2 parents bcd6493 + 9a32597 commit c8ce42c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Modding/ModLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private static void StartupMod(Mod mod)
// Invoke all static methods annotated with [Startup] along with the supplied parameters (if any)
mod.Assemblies
.SelectMany(assembly => assembly.GetTypes())
.SelectMany(type => type.GetMethods(BindingFlags.NonPublic | BindingFlags.Public))
.SelectMany(type => type.GetMethods(BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public))
.Select(method => (method, method.GetCustomAttribute<ModStartupAttribute>()))
.Where(pair => pair.Item2 is not null)
.ForEach(pair => pair.Item1.Invoke(null, pair.Item2.Parameters));
Expand Down
2 changes: 1 addition & 1 deletion Modot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Workaround as Godot does not know how to properly load NuGet packages -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2.0.0</PackageVersion>
<PackageVersion>2.0.1</PackageVersion>
<Title>Modot</Title>
<Authors>Carnagion</Authors>
<Description>A mod loader and API for applications made using Godot, with the ability to load C# assemblies, XML data, and resource packs at runtime.</Description>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A more detailed explanation of all features along with instructions on usage is
Simply include the following lines in a Godot project's `.csproj` file (either by editing the file manually or letting an IDE install the package):
```xml
<ItemGroup>
<PackageReference Include="Modot" Version="2.0.0"/>
<PackageReference Include="Modot" Version="2.0.1"/>
</ItemGroup>
```

Expand Down

0 comments on commit c8ce42c

Please sign in to comment.