use FailThrough when available

This commit is contained in:
dfsek
2021-07-21 22:20:20 -07:00
parent deb1063592
commit ba53923e8c
14 changed files with 32 additions and 16 deletions
@@ -25,6 +25,7 @@ public class YamlAddon extends TerraAddon {
.then(event -> event.getLoader().open("", ".yml").thenEntries(entries -> entries.forEach(entry -> {
main.getDebugLogger().info("Discovered config " + entry.getKey());
event.register(entry.getKey(), new YamlConfiguration(entry.getValue(), entry.getKey()));
})));
})))
.failThrough();
}
}