mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-08-16 16:26:12 +00:00
use platform utils for regen
This commit is contained in:
parent
fcbbd2135b
commit
49d2392c80
@ -207,8 +207,9 @@ public class BukkitChunkGenerator extends ChunkGenerator implements PlatformChun
|
|||||||
this.world.bind(world);
|
this.world.bind(world);
|
||||||
getEngine().generate(x << 4, z << 4, tc, false);
|
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 -> {
|
.thenApply(d -> {
|
||||||
|
if (d == null) throw new IllegalStateException("Chunk is null!");
|
||||||
d.addPluginChunkTicket(Iris.instance);
|
d.addPluginChunkTicket(Iris.instance);
|
||||||
|
|
||||||
for (Entity ee : d.getEntities()) {
|
for (Entity ee : d.getEntities()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user