Unload mantle when not generating

This commit is contained in:
cyberpwn
2022-09-11 20:58:58 -04:00
parent 3d0c0a11ed
commit 7c7309c3ab
4 changed files with 17 additions and 4 deletions

View File

@@ -147,6 +147,7 @@ public class IrisEngine implements Engine {
}
private void tickRandomPlayer() {
recycle();
if(perSecondBudLatch.flip()) {
buds.set(bud.get());
bud.set(0);
@@ -459,8 +460,6 @@ public class IrisEngine implements Engine {
if(generated.get() == 661) {
J.a(() -> getData().savePrefetch(this));
}
recycle();
} catch(Throwable e) {
Iris.reportError(e);
fail("Failed to generate " + x + ", " + z, e);