From ff1733225ac3867c1ff92437fb07369317db1d56 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Sat, 11 Sep 2021 09:15:09 +0200 Subject: [PATCH] Max on pregen radius parameter --- src/main/java/com/volmit/iris/core/commands/CommandPregen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/volmit/iris/core/commands/CommandPregen.java b/src/main/java/com/volmit/iris/core/commands/CommandPregen.java index b980178fa..03ed016d9 100644 --- a/src/main/java/com/volmit/iris/core/commands/CommandPregen.java +++ b/src/main/java/com/volmit/iris/core/commands/CommandPregen.java @@ -46,6 +46,7 @@ public class CommandPregen implements DecreeExecutor { sender().sendMessage(C.RED + "The engine access for this world is null!"); sender().sendMessage(C.RED + "Please make sure the world is loaded & the engine is initialized. Generate a new chunk, for example."); } + radius = Math.max(radius, 1024); IrisToolbelt.pregenerate(PregenTask .builder() .center(new Position2(center))