mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Async trimming
This commit is contained in:
parent
4442d9a706
commit
3728c59f1d
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user