mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 06:11:06 +00:00
Merge pull request #370 from CocoTheOwner/fix-pregen-progressbar
Fix pregen progressbar
This commit is contained in:
@@ -78,7 +78,6 @@ public class Pregenerator implements Listener
|
|||||||
public Pregenerator(World world, int blockSize) throws HeadlessException
|
public Pregenerator(World world, int blockSize) throws HeadlessException
|
||||||
{
|
{
|
||||||
instance();
|
instance();
|
||||||
elapsed = M.ms();
|
|
||||||
latch = new ChronoLatch(5000);
|
latch = new ChronoLatch(5000);
|
||||||
memoryMetric = new AtomicReference<>("...");
|
memoryMetric = new AtomicReference<>("...");
|
||||||
method = new AtomicReference<>("STARTUP");
|
method = new AtomicReference<>("STARTUP");
|
||||||
@@ -135,6 +134,8 @@ public class Pregenerator implements Listener
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
elapsed = M.ms();
|
||||||
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
flushWorld();
|
flushWorld();
|
||||||
J.sleep(2000);
|
J.sleep(2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user