Pregenerator force override gui option

This commit is contained in:
DanLT 2021-06-23 21:13:41 -08:00
parent 7ba051c7ff
commit 56f6143873

View File

@ -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<ChunkPosition> order = computeChunkOrder();
Consumer3<Integer, Integer, Consumer2<Integer, Integer>> mcaIteration =