mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-15 15:15:38 +01:00
fix: Don't need to check version before removing serialisation value
This commit is contained in:
parent
7f9c45d8e1
commit
f05092076f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user