mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 03:29:06 +00:00
f
This commit is contained in:
@@ -36,7 +36,9 @@ public class EngineTarget {
|
||||
this.world = world;
|
||||
this.dimension = dimension;
|
||||
this.data = data;
|
||||
this.burster = MultiBurst.burst;
|
||||
this.burster = new MultiBurst("Iris Engine " + dimension.getName(),
|
||||
IrisSettings.get().getConcurrency().getEngineThreadPriority(),
|
||||
IrisSettings.getThreadCount(IrisSettings.get().getConcurrency().getEngineThreadCount()));
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
@@ -44,6 +46,6 @@ public class EngineTarget {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
|
||||
burster.shutdownLater();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class HeadlessGenerator implements PlatformChunkGenerator {
|
||||
|
||||
public HeadlessGenerator(HeadlessWorld world) {
|
||||
this.world = world;
|
||||
burst = MultiBurst.burst;
|
||||
burst = new MultiBurst("Iris Headless Generator", 9, IrisSettings.getThreadCount(IrisSettings.get().getConcurrency().getPregenThreadCount()));
|
||||
writer = new NBTWorld(world.getWorld().worldFolder());
|
||||
engine = new IrisEngine(new EngineTarget(world.getWorld(), world.getDimension(), world.getDimension().getLoader()), isStudio());
|
||||
}
|
||||
@@ -131,6 +131,7 @@ public class HeadlessGenerator implements PlatformChunkGenerator {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
burst.shutdownAndAwait();
|
||||
getEngine().close();
|
||||
writer.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user