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
@@ -22,6 +22,7 @@ public class StructureAddon extends TerraAddon {
main.getEventManager()
.getHandler(FunctionalEventHandler.class)
.register(this, ConfigPackPreLoadEvent.class)
.then(event -> event.getPack().applyLoader(ConfiguredStructure.class, (t, o, l) -> null));
.then(event -> event.getPack().applyLoader(ConfiguredStructure.class, (t, o, l) -> null))
.failThrough();
}
}