mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-06 15:51:30 +00:00
Fix Parallax & update settings
This commit is contained in:
@@ -163,8 +163,8 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
}
|
||||
|
||||
if (hint == null) {
|
||||
Iris.error("Cannot find iris dimension data for world: " + world.getName() + "! Assuming " + IrisSettings.get().getDefaultWorldType() + "!");
|
||||
hint = IrisSettings.get().getDefaultWorldType();
|
||||
Iris.error("Cannot find iris dimension data for world: " + world.getName() + "! Assuming " + IrisSettings.get().getGenerator().getDefaultWorldType() + "!");
|
||||
hint = IrisSettings.get().getGenerator().getDefaultWorldType();
|
||||
}
|
||||
|
||||
dim = IrisDataManager.loadAnyDimension(hint);
|
||||
@@ -238,8 +238,8 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
}
|
||||
|
||||
if (hint == null) {
|
||||
Iris.error("Cannot find iris dimension data for world: " + world + "! Assuming " + IrisSettings.get().getDefaultWorldType() + "!");
|
||||
hint = IrisSettings.get().getDefaultWorldType();
|
||||
Iris.error("Cannot find iris dimension data for world: " + world + "! Assuming " + IrisSettings.get().getGenerator().getDefaultWorldType() + "!");
|
||||
hint = IrisSettings.get().getGenerator().getDefaultWorldType();
|
||||
}
|
||||
|
||||
dim = IrisDataManager.loadAnyDimension(hint);
|
||||
|
||||
@@ -199,7 +199,7 @@ public class ParallaxWorld implements ParallaxAccess
|
||||
|
||||
public void cleanup()
|
||||
{
|
||||
cleanup(IrisSettings.get().getParallaxRegionEvictionMS(), IrisSettings.get().getParallaxChunkEvictionMS());
|
||||
cleanup(IrisSettings.get().getParallaxRegionEvictionMS(), IrisSettings.get().getParallax().getParallaxChunkEvictionMS());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.volmit.iris.scaffold.parallel;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.IrisSettings;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
@@ -51,15 +50,6 @@ public class MultiBurst
|
||||
|
||||
public BurstExecutor burst(int estimate)
|
||||
{
|
||||
if(IrisSettings.get().isForceSingleThreadedPerChunk()) {
|
||||
if(syncService == null)
|
||||
{
|
||||
syncService = Executors.newSingleThreadExecutor();
|
||||
}
|
||||
|
||||
return new BurstExecutor(syncService, estimate);
|
||||
}
|
||||
|
||||
return new BurstExecutor(service, estimate);
|
||||
}
|
||||
|
||||
@@ -69,19 +59,7 @@ public class MultiBurst
|
||||
}
|
||||
|
||||
public void lazy(Runnable o) {
|
||||
if(IrisSettings.get().isForceSingleThreadedPerChunk()) {
|
||||
if(syncService == null)
|
||||
{
|
||||
syncService = Executors.newSingleThreadExecutor();
|
||||
}
|
||||
|
||||
syncService.execute(o);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
service.execute(o);
|
||||
}
|
||||
service.execute(o);
|
||||
}
|
||||
|
||||
public void shutdownNow() {
|
||||
|
||||
Reference in New Issue
Block a user