Update Settings.java

This commit is contained in:
Tungstend 2023-07-29 00:04:16 +08:00
parent 630a0711d2
commit f09330bc06
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package com.tungsten.fcl.setting;
import static com.tungsten.fcl.setting.ConfigHolder.config;
import com.tungsten.fcl.game.FCLCacheRepository;
import com.tungsten.fclauncher.FCLPath;
import com.tungsten.fclcore.fakefx.beans.binding.Bindings;
import com.tungsten.fclcore.util.CacheRepository;
@ -32,7 +33,7 @@ public final class Settings {
AuthlibInjectorServers.init();
CacheRepository.setInstance(FCLCacheRepository.REPOSITORY);
FCLCacheRepository.REPOSITORY.directoryProperty().bind(Bindings.createStringBinding(() -> config().getCommonDirectory(), config().commonDirectoryProperty()));
FCLCacheRepository.REPOSITORY.setDirectory(FCLPath.CACHE_DIR);
}
}