Commit 1ffb73330fed58be3b8daf336b792f6053e6be1a

Authored by Mumfrey
1 parent 54b5ecdd

LiteLoader 1.6.4_02 - experimental - fix ConfigManager::migrateModConfig to use …

…Exposable object as key instead of class
java/com/mumfrey/liteloader/modconfig/ConfigManager.java
@@ -106,10 +106,9 @@ public class ConfigManager @@ -106,10 +106,9 @@ public class ConfigManager
106 */ 106 */
107 public void migrateModConfig(LiteMod mod, File newConfigPath, File oldConfigPath) 107 public void migrateModConfig(LiteMod mod, File newConfigPath, File oldConfigPath)
108 { 108 {
109 - Class<? extends Exposable> exposableClass = mod.getClass();  
110 - if (exposableClass != null && this.configWriters.containsKey(exposableClass)) 109 + if (this.configWriters.containsKey(mod))
111 { 110 {
112 - ExposableConfigWriter writer = this.configWriters.get(exposableClass); 111 + ExposableConfigWriter writer = this.configWriters.get(mod);
113 if (writer.isVersioned()) 112 if (writer.isVersioned())
114 { 113 {
115 File newConfigFile = writer.getConfigFile(); 114 File newConfigFile = writer.getConfigFile();