Skip to content

Commit 2ed4eff

Browse files
committed
Standalone: fix loading from arbitrary file paths
Pre-Configurate had this same behavior: 765128c#diff-262f536cb22e92d0eab2b1fd455563d317e907a88761a3d6ef16ec91dada4aeaL193 Loading from alternate folders now works as expected.
1 parent a49ae8f commit 2ed4eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap/standalone/src/main/java/org/geysermc/geyser/platform/standalone/GeyserStandaloneBootstrap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void onGeyserEnable() {
197197
@Override
198198
public <T extends GeyserConfig> T loadConfig(Class<T> configClass) {
199199
return new ConfigLoader(this)
200-
.configFile(new File(getConfigFolder().toFile(), configFilename))
200+
.configFile(new File(configFilename))
201201
.transformer(this::handleArgsConfigOptions)
202202
.load(configClass);
203203
}

0 commit comments

Comments
 (0)