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
@@ -35,6 +35,7 @@ public class LocatorAddon extends TerraAddon {
CheckedRegistry<Supplier<ObjectTemplate<Locator>>> locatorRegistry = event.getPack().getOrCreateRegistry(LOCATOR_TOKEN);
locatorRegistry.register("SURFACE", () -> new SurfaceLocatorTemplate(main));
locatorRegistry.register("RANDOM", RandomLocatorTemplate::new);
});
})
.failThrough();
}
}