mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-26 18:49:06 +00:00
Stop recreating threads without shutting down engine targets
This commit is contained in:
@@ -212,6 +212,11 @@ public class IrisEngine extends BlockPopulator implements Engine {
|
||||
return getData().getBiomeLoader().load(getDimension().getFocus());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hotloading() {
|
||||
close();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void populate(@NotNull World world, @NotNull Random random, @NotNull Chunk c) {
|
||||
getWorldManager().spawnInitialEntities(c);
|
||||
|
||||
@@ -378,4 +378,6 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
|
||||
}
|
||||
|
||||
IrisBiome getFocus();
|
||||
|
||||
void hotloading();
|
||||
}
|
||||
|
||||
@@ -127,6 +127,8 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
getComposite().close();
|
||||
initialized.lazySet(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user