mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 06:11:06 +00:00
e
This commit is contained in:
@@ -81,14 +81,14 @@ public class IrisEngineSVC implements IrisService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void IrisEngine(){
|
public void IrisEngine() {
|
||||||
engineTicker = new Looper() {
|
engineTicker = new Looper() {
|
||||||
@Override
|
@Override
|
||||||
protected long loop() {
|
protected long loop() {
|
||||||
try {
|
try {
|
||||||
World world = selectedWorldRef.get();
|
World world = selectedWorldRef.get();
|
||||||
PlatformChunkGenerator generator = IrisToolbelt.access(world);
|
PlatformChunkGenerator generator = IrisToolbelt.access(world);
|
||||||
if(generator == null) {
|
if (generator == null) {
|
||||||
initializeAsync().thenAcceptAsync(foundWorld -> selectedWorldRef.set(foundWorld));
|
initializeAsync().thenAcceptAsync(foundWorld -> selectedWorldRef.set(foundWorld));
|
||||||
} else {
|
} else {
|
||||||
selectedWorld = world;
|
selectedWorld = world;
|
||||||
@@ -110,13 +110,13 @@ public class IrisEngineSVC implements IrisService {
|
|||||||
try {
|
try {
|
||||||
World world = selectedWorld;
|
World world = selectedWorld;
|
||||||
PlatformChunkGenerator generator = IrisToolbelt.access(world);
|
PlatformChunkGenerator generator = IrisToolbelt.access(world);
|
||||||
if(generator != null) {
|
if (generator != null) {
|
||||||
Engine engine = IrisToolbelt.access(world).getEngine();
|
Engine engine = IrisToolbelt.access(world).getEngine();
|
||||||
if (generator != null && generator.getEngine() != null) {
|
if (generator != null && generator.getEngine() != null) {
|
||||||
engine.getMantle().trim();
|
engine.getMantle().trim();
|
||||||
} else {
|
} else {
|
||||||
Iris.info("something is null 1");
|
Iris.info("something is null 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
@@ -135,7 +135,7 @@ public class IrisEngineSVC implements IrisService {
|
|||||||
try {
|
try {
|
||||||
World world = selectedWorld;
|
World world = selectedWorld;
|
||||||
PlatformChunkGenerator generator = IrisToolbelt.access(world);
|
PlatformChunkGenerator generator = IrisToolbelt.access(world);
|
||||||
if(generator != null) {
|
if (generator != null) {
|
||||||
Engine engine = IrisToolbelt.access(world).getEngine();
|
Engine engine = IrisToolbelt.access(world).getEngine();
|
||||||
if (generator != null && generator.getEngine() != null) {
|
if (generator != null && generator.getEngine() != null) {
|
||||||
engine.getMantle().unloadTectonicPlate();
|
engine.getMantle().unloadTectonicPlate();
|
||||||
|
|||||||
Reference in New Issue
Block a user