9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-19 15:09:18 +00:00

fix compile

This commit is contained in:
Julian Krings
2025-09-02 21:57:34 +02:00
parent 33fd01c3ac
commit 4a26b8b34f
3 changed files with 7 additions and 3 deletions

View File

@@ -367,7 +367,7 @@ public class CommandStudio implements DecreeExecutor {
var sender = sender(); var sender = sender();
int d = radius * 2; int d = radius * 2;
KMap<String, KList<Position2>> data = new KMap<>(); KMap<String, KList<Position2>> data = new KMap<>();
var multiBurst = new MultiBurst("Distance Sampler", Thread.MIN_PRIORITY); var multiBurst = new MultiBurst("Distance Sampler");
var executor = multiBurst.burst(radius * radius); var executor = multiBurst.burst(radius * radius);
sender.sendMessage(C.GRAY + "Generating data..."); sender.sendMessage(C.GRAY + "Generating data...");

View File

@@ -192,7 +192,7 @@ public class AsyncPregenMethod implements PregeneratorMethod {
private class ServiceExecutor implements Executor { private class ServiceExecutor implements Executor {
private final ExecutorService service = IrisSettings.get().getPregen().isUseVirtualThreads() ? private final ExecutorService service = IrisSettings.get().getPregen().isUseVirtualThreads() ?
Executors.newVirtualThreadPerTaskExecutor() : Executors.newVirtualThreadPerTaskExecutor() :
new MultiBurst("Iris Async Pregen", Thread.MIN_PRIORITY); new MultiBurst("Iris Async Pregen");
public void generate(int x, int z, PregenListener listener) { public void generate(int x, int z, PregenListener listener) {
service.submit(() -> { service.submit(() -> {

View File

@@ -42,7 +42,11 @@ public class MultiBurst implements ExecutorService {
private ExecutorService service; private ExecutorService service;
public MultiBurst() { public MultiBurst() {
this("Iris", Thread.MIN_PRIORITY, () -> IrisSettings.get().getConcurrency().getParallelism()); this("Iris");
}
public MultiBurst(String name) {
this(name, Thread.MIN_PRIORITY, () -> IrisSettings.get().getConcurrency().getParallelism());
} }
public MultiBurst(String name, IntSupplier parallelism) { public MultiBurst(String name, IntSupplier parallelism) {