Async trimming

This commit is contained in:
Daniel Mills 2021-08-10 07:18:55 -04:00
parent 4442d9a706
commit 3728c59f1d

View File

@ -328,18 +328,18 @@ public class IrisEngine extends BlockPopulator implements Engine {
cleaning.set(true);
J.a(() -> {
try {
getMantle().trim();
getData().getObjectLoader().clean();
} catch (Throwable e) {
Iris.reportError(e);
Iris.error("Cleanup failed!");
e.printStackTrace();
}
});
J.a(() -> {
try {
getMantle().trim();
getData().getObjectLoader().clean();
} catch (Throwable e) {
Iris.reportError(e);
Iris.error("Cleanup failed!");
e.printStackTrace();
}
cleaning.lazySet(false);
cleaning.lazySet(false);
});
}
public EngineActuator<BlockData> getTerrainActuator() {