fix: Don't need to check version before removing serialisation value

This commit is contained in:
Ben Woo 2023-03-27 10:39:29 +08:00
parent 7f9c45d8e1
commit f05092076f
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8

View File

@ -82,9 +82,7 @@ public class DefaultMVConfig implements MVConfig {
return;
}
// Remove the old config section if it is still in the old ConfigurationSerializable.
if (content.contains("version: 2.5")) {
content = content.replace("==: com.onarandombox.MultiverseCore.MultiverseCoreConfiguration", "");
}
content = content.replace("==: com.onarandombox.MultiverseCore.MultiverseCoreConfiguration", "");
try {
Files.writeString(configPath, content);
} catch (IOException e) {