1
0
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:
Camotoy
2025-11-22 20:00:40 -05:00
parent a49ae8fade
commit 2ed4eff18f

View File

@@ -197,7 +197,7 @@ public class GeyserStandaloneBootstrap implements GeyserBootstrap {
@Override @Override
public <T extends GeyserConfig> T loadConfig(Class<T> configClass) { public <T extends GeyserConfig> T loadConfig(Class<T> configClass) {
return new ConfigLoader(this) return new ConfigLoader(this)
.configFile(new File(getConfigFolder().toFile(), configFilename)) .configFile(new File(configFilename))
.transformer(this::handleArgsConfigOptions) .transformer(this::handleArgsConfigOptions)
.load(configClass); .load(configClass);
} }