Update Settings.java
This commit is contained in:
parent
630a0711d2
commit
f09330bc06
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue