mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-03 18:48:00 +01:00
Remove old config migration code
This commit is contained in:
parent
ca0e52e9b1
commit
cc3ba13c98
@ -305,18 +305,6 @@ public class ProtocolTranslator {
|
|||||||
name.set(name.get() + " (Work in progress)");
|
name.set(name.get() + " (Work in progress)");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated/*(forRemoval = true)*/
|
|
||||||
private static void migrateOldConfigs(final File directory) {
|
|
||||||
final File oldDirectory = new File(directory, "ViaLoader");
|
|
||||||
if (oldDirectory.exists()) {
|
|
||||||
// Move all files from this folder into the directory itself
|
|
||||||
for (File file : oldDirectory.listFiles()) {
|
|
||||||
file.renameTo(new File(directory, file.getName()));
|
|
||||||
}
|
|
||||||
oldDirectory.delete();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is used to initialize the whole Protocol Translator
|
* This method is used to initialize the whole Protocol Translator
|
||||||
*
|
*
|
||||||
@ -328,7 +316,6 @@ public class ProtocolTranslator {
|
|||||||
if (SharedConstants.getProtocolVersion() != NATIVE_VERSION.getOriginalVersion()) {
|
if (SharedConstants.getProtocolVersion() != NATIVE_VERSION.getOriginalVersion()) {
|
||||||
throw new IllegalStateException("Native version is not the same as the current version");
|
throw new IllegalStateException("Native version is not the same as the current version");
|
||||||
}
|
}
|
||||||
migrateOldConfigs(directory);
|
|
||||||
patchConfigs(directory);
|
patchConfigs(directory);
|
||||||
|
|
||||||
// Register command callback for /viafabricplus
|
// Register command callback for /viafabricplus
|
||||||
|
Loading…
Reference in New Issue
Block a user