This commit is contained in:
Camotoy 2024-06-15 12:56:00 -04:00
parent 10bf4eeb4e
commit cb4c5ad62d
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -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