mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Stop recreating threads without shutting down engine targets
This commit is contained in:
parent
886ec9c574
commit
0a78a87a17
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user