Skip to content

Commit

Permalink
Fix #12 "CleanDefPackage" issues (#13)
Browse files Browse the repository at this point in the history
* Fix #12 "CleanDefPackage" issues

Fix incorrect field name.

* Rebuild .dll's files
  • Loading branch information
AirDeeEx authored Apr 8, 2020
1 parent 53147fe commit 73777d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified RuntimeGC/1.1/Assemblies/RuntimeGC.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion src/RuntimeGC/RuntimeGC/Toolbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static class DefPackageCleaner

public static void CleanDefPackage()
{
FieldInfo defPackages = typeof(ModContentPack).GetField("defPackages", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public);
FieldInfo defPackages = typeof(ModContentPack).GetField("defs", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public);
int a = 0;
foreach (ModContentPack pack in LoadedModManager.RunningMods)
{
Expand Down

0 comments on commit 73777d6

Please sign in to comment.