mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Progress
This commit is contained in:
parent
10bf4eeb4e
commit
cb4c5ad62d
1 changed files with 1 additions and 5 deletions
|
@ -52,13 +52,9 @@ public class ConfigLoaderTemp {
|
||||||
--------------------------------""";
|
--------------------------------""";
|
||||||
|
|
||||||
public static <T extends GeyserConfig> T load(Class<T> configClass) throws IOException {
|
public static <T extends GeyserConfig> T load(Class<T> configClass) throws IOException {
|
||||||
if (true) {
|
|
||||||
return null; // For now
|
|
||||||
}
|
|
||||||
var loader = YamlConfigurationLoader.builder()
|
var loader = YamlConfigurationLoader.builder()
|
||||||
.file(new File("newconfig.yml"))
|
.file(new File("newconfig.yml"))
|
||||||
.defaultOptions(InterfaceDefaultOptions.get()
|
.defaultOptions(options -> InterfaceDefaultOptions.addTo(options.header(HEADER)))
|
||||||
.header(HEADER))
|
|
||||||
.build();
|
.build();
|
||||||
ConfigurationNode node = loader.load();
|
ConfigurationNode node = loader.load();
|
||||||
// temp fix for node.virtual() being broken
|
// temp fix for node.virtual() being broken
|
||||||
|
|
Loading…
Reference in a new issue