mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-10 10:17:41 +01:00
fix: Get version without default fallback
This commit is contained in:
parent
98fc0178aa
commit
624d5ad117
@ -37,7 +37,7 @@ public class ConfigMigrator {
|
||||
* @param settings The target settings instance to migrate.
|
||||
*/
|
||||
public void migrate(ConfigHandle settings) {
|
||||
double versionNumber = settings.get(versionNode);
|
||||
double versionNumber = settings.getConfig().getDouble(versionNode.getPath());
|
||||
for (VersionMigrator versionMigrator : versionMigrators) {
|
||||
if (versionNumber < versionMigrator.getVersion()) {
|
||||
Logging.info("Migrating config from version %s to %s...", versionNumber, versionMigrator.getVersion());
|
||||
|
Loading…
Reference in New Issue
Block a user