diff --git a/src/main/java/com/volmit/iris/pregen/Pregenerator.java b/src/main/java/com/volmit/iris/pregen/Pregenerator.java index 1b301b5f5..b026fab18 100644 --- a/src/main/java/com/volmit/iris/pregen/Pregenerator.java +++ b/src/main/java/com/volmit/iris/pregen/Pregenerator.java @@ -76,6 +76,11 @@ public class Pregenerator implements Listener } public Pregenerator(World world, int blockSize) throws HeadlessException + { + this(world, blockSize, true); + } + + public Pregenerator(World world, int blockSize, boolean dogui) throws HeadlessException { instance(); latch = new ChronoLatch(5000); @@ -110,7 +115,7 @@ public class Pregenerator implements Listener totalChunks.getAndAdd(1024); draw.add(() -> drawMCA(xx, zz, COLOR_MCA_PREPARE)); }).drain(); - gui = IrisSettings.get().getGui().isLocalPregenGui() && IrisSettings.get().getGui().isUseServerLaunchedGuis() ? MCAPregenGui.createAndShowGUI(this) : null; + gui = dogui ?(IrisSettings.get().getGui().isLocalPregenGui() && IrisSettings.get().getGui().isUseServerLaunchedGuis() ? MCAPregenGui.createAndShowGUI(this) : null) : null; flushWorld(); KList order = computeChunkOrder(); Consumer3> mcaIteration =