use platform utils for regen

This commit is contained in:
Julian Krings 2025-07-19 22:55:25 +02:00
parent fcbbd2135b
commit 49d2392c80
No known key found for this signature in database
GPG Key ID: 208C6E08C3B718D2

View File

@ -207,8 +207,9 @@ public class BukkitChunkGenerator extends ChunkGenerator implements PlatformChun
this.world.bind(world);
getEngine().generate(x << 4, z << 4, tc, false);
Chunk c = PaperLib.getChunkAtAsync(world, x, z)
Chunk c = Iris.platform.getChunkAtAsync(world, x, z)
.thenApply(d -> {
if (d == null) throw new IllegalStateException("Chunk is null!");
d.addPluginChunkTicket(Iris.instance);
for (Entity ee : d.getEntities()) {