Skip to content

Commit

Permalink
[Fix] Wrong class in hook
Browse files Browse the repository at this point in the history
  • Loading branch information
TacoConKvass committed Nov 26, 2024
1 parent 726f64f commit c4fe13c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# RL2.API Changelog

## v1.1.1
### Fixes:
- Bad method signature in register content hook

## v1.1.0
### Changes:
- RL2.API now requires RL2.ModLoader v1.0.3
Expand Down
2 changes: 1 addition & 1 deletion RL2.API/RL2.API.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Name": "RL2.API",
"Author": "TacoConKvass",
"Version": "1.1.0",
"Version": "1.1.1",
"ModAssembly": "RL2.API.dll",
"LoadAfter": []
}
2 changes: 1 addition & 1 deletion RL2.API/RL2API_Hooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace RL2.API;
public partial class RL2API
{
internal static Hook OnGameLoad_Hook = new Hook(
typeof(GameManager).GetMethod("Run", BindingFlags.NonPublic | BindingFlags.Instance),
typeof(OnGameLoadManager).GetMethod("Run", BindingFlags.NonPublic | BindingFlags.Static),
(Action orig) => {
orig();
foreach (Mod mod in LoadedMods) {
Expand Down

0 comments on commit c4fe13c

Please sign in to comment.