9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 12:29:20 +00:00
This commit is contained in:
RePixelatedMC
2023-12-16 14:29:56 +01:00
parent 07e0b52ea3
commit 28523a9593

View File

@@ -81,14 +81,14 @@ public class IrisEngineSVC implements IrisService {
});
}
public void IrisEngine(){
public void IrisEngine() {
engineTicker = new Looper() {
@Override
protected long loop() {
try {
World world = selectedWorldRef.get();
PlatformChunkGenerator generator = IrisToolbelt.access(world);
if(generator == null) {
if (generator == null) {
initializeAsync().thenAcceptAsync(foundWorld -> selectedWorldRef.set(foundWorld));
} else {
selectedWorld = world;
@@ -110,13 +110,13 @@ public class IrisEngineSVC implements IrisService {
try {
World world = selectedWorld;
PlatformChunkGenerator generator = IrisToolbelt.access(world);
if(generator != null) {
Engine engine = IrisToolbelt.access(world).getEngine();
if (generator != null && generator.getEngine() != null) {
engine.getMantle().trim();
} else {
Iris.info("something is null 1");
}
if (generator != null) {
Engine engine = IrisToolbelt.access(world).getEngine();
if (generator != null && generator.getEngine() != null) {
engine.getMantle().trim();
} else {
Iris.info("something is null 1");
}
}
} catch (Throwable e) {
@@ -135,7 +135,7 @@ public class IrisEngineSVC implements IrisService {
try {
World world = selectedWorld;
PlatformChunkGenerator generator = IrisToolbelt.access(world);
if(generator != null) {
if (generator != null) {
Engine engine = IrisToolbelt.access(world).getEngine();
if (generator != null && generator.getEngine() != null) {
engine.getMantle().unloadTectonicPlate();