mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-19 15:09:18 +00:00
fix compile
This commit is contained in:
@@ -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...");
|
||||||
|
|||||||
@@ -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(() -> {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user