File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,6 @@ private bool Initialize()
126126 return this . instance . InitModCode ( ) ;
127127 }
128128
129- public bool DoesModInstanceMatch ( global ::Mod mod )
130- {
131- if ( ! this . Loaded )
132- return false ;
133-
134- return this . instance == mod ;
135- }
136-
137129 protected string GetModFolderPath ( string subpath )
138130 {
139131 return $ "@modfolder({ this . Info . Name } ):{ subpath } ";
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public bool IsModEnabled(Mod mod)
115115
116116 public Mod GetModFromInstance ( global ::Mod instance )
117117 {
118- return this . GetMods ( true ) . Find ( mod => mod . DoesModInstanceMatch ( instance ) ) ;
118+ return this . GetMods ( true ) . Find ( mod => mod . Info . Name . Equals ( instance . Name ) ) ;
119119 }
120120
121121 public bool SaveModChanges ( )
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public class ModManagerModSettings : IModSettings
2222 public ModManagerModSettings ( global ::Mod mod )
2323 {
2424 this . entry = ModLoader . Instance . GetModFromInstance ( mod ) ;
25+
2526 loadedSettingsInstance = loadedSettings . ContainsKey ( this . entry . Info . Name ) ? loadedSettings [ this . entry . Info . Name ] : new Dictionary < string , string > ( ) ;
2627
2728 modSettingsInstances . Add ( entry , this ) ;
You can’t perform that action at this time.
0 commit comments