Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

Commit

Permalink
Fixed modloader for pre-alpha 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkentim committed Mar 30, 2016
1 parent 434f57b commit c8f5ca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ParkitectNexus.Mod.ModLoader/ModLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class ModLoader : IMod

public ModLoader()
{
_modEntries = typeof (ModManager).GetField("modEntries", BindingFlags.Instance | BindingFlags.NonPublic)
.GetValue(ModManager.Instance) as List<ModManager.ModEntry>;
var fieldInfo = typeof (ModManager).GetField("modEntries", BindingFlags.Instance | BindingFlags.NonPublic);
_modEntries = fieldInfo.GetValue(ModManager.Instance) as List<ModManager.ModEntry>;

LoadMods();
}
Expand Down Expand Up @@ -195,4 +195,4 @@ public string Identifier

#endregion
}
}
}

0 comments on commit c8f5ca7

Please sign in to comment.