mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 16:17:20 +00:00
convert a bunch of stuff to new APIs
This commit is contained in:
1 parent
16705057e0
commit
9a16336f53
29 files changed
+167
-87
No files matched your search
@@ -51,7 +51,7 @@ public final class TerraCLI implements Callable<Integer> {
|
||||
CLIPlatform platform = new CLIPlatform();
|
||||
platform.getEventManager().callEvent(new PlatformInitializationEvent());
|
||||
|
||||
ConfigPack generate = platform.getConfigRegistry().getByID(pack).orElseThrow();
|
||||
ConfigPack generate = platform.getConfigRegistry().getByID(pack).collectThrow(RuntimeException::new);
|
||||
|
||||
CLIWorld world = new CLIWorld(size, seed, maxHeight, minHeight, generate, noSave);
|
||||
|
||||
|
||||
Reference in new issue
Block a user