Stop recreating threads without shutting down engine targets

This commit is contained in:
Daniel Mills 2021-07-21 08:37:26 -04:00
parent 886ec9c574
commit 0a78a87a17
3 changed files with 9 additions and 0 deletions

View File

@ -212,6 +212,11 @@ public class IrisEngine extends BlockPopulator implements Engine {
return getData().getBiomeLoader().load(getDimension().getFocus()); return getData().getBiomeLoader().load(getDimension().getFocus());
} }
@Override
public void hotloading() {
close();
}
@Override @Override
public void populate(@NotNull World world, @NotNull Random random, @NotNull Chunk c) { public void populate(@NotNull World world, @NotNull Random random, @NotNull Chunk c) {
getWorldManager().spawnInitialEntities(c); getWorldManager().spawnInitialEntities(c);

View File

@ -378,4 +378,6 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
} }
IrisBiome getFocus(); IrisBiome getFocus();
void hotloading();
} }

View File

@ -127,6 +127,8 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
} }
}); });
getComposite().close();
initialized.lazySet(false); initialized.lazySet(false);
} }
} }