mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-19 14:59:27 +00:00
Standalone: fix loading from arbitrary file paths
Pre-Configurate had this same behavior: 765128ce42 (diff-262f536cb22e92d0eab2b1fd455563d317e907a88761a3d6ef16ec91dada4aeaL193)
Loading from alternate folders now works as expected.
This commit is contained in:
@@ -197,7 +197,7 @@ public class GeyserStandaloneBootstrap implements GeyserBootstrap {
|
||||
@Override
|
||||
public <T extends GeyserConfig> T loadConfig(Class<T> configClass) {
|
||||
return new ConfigLoader(this)
|
||||
.configFile(new File(getConfigFolder().toFile(), configFilename))
|
||||
.configFile(new File(configFilename))
|
||||
.transformer(this::handleArgsConfigOptions)
|
||||
.load(configClass);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user