1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-27 10:49:10 +00:00
This commit is contained in:
Camotoy
2024-06-15 12:56:00 -04:00
parent 10bf4eeb4e
commit cb4c5ad62d

View File

@@ -52,13 +52,9 @@ public class ConfigLoaderTemp {
--------------------------------""";
public static <T extends GeyserConfig> T load(Class<T> configClass) throws IOException {
if (true) {
return null; // For now
}
var loader = YamlConfigurationLoader.builder()
.file(new File("newconfig.yml"))
.defaultOptions(InterfaceDefaultOptions.get()
.header(HEADER))
.defaultOptions(options -> InterfaceDefaultOptions.addTo(options.header(HEADER)))
.build();
ConfigurationNode node = loader.load();
// temp fix for node.virtual() being broken