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
@@ -21,6 +21,7 @@ public class FeatureAddon extends TerraAddon {
main.getEventManager()
.getHandler(FunctionalEventHandler.class)
.register(this, ConfigPackPreLoadEvent.class)
.then(event -> event.getPack().registerConfigType(new FeatureConfigType(), "FEATURE", 2));
.then(event -> event.getPack().registerConfigType(new FeatureConfigType(), "FEATURE", 2))
.failThrough();
}
}