FIx for AsyncChunk

This commit is contained in:
Jesse Boyd 2019-07-12 17:38:03 +10:00
parent e994c765fa
commit 5cc5ce5537
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -74,7 +74,7 @@ public class AsyncChunk implements Chunk {
return whenLoaded(new RunnableVal<ChunkSnapshot>() { return whenLoaded(new RunnableVal<ChunkSnapshot>() {
@Override @Override
public void run(ChunkSnapshot value) { public void run(ChunkSnapshot value) {
this.value = world.getChunkAt(x, z).getChunkSnapshot(includeBiome, includeBiome, includeBiomeTempRain); this.value = world.getBukkitWorld().getChunkAt(x, z).getChunkSnapshot(includeBiome, includeBiome, includeBiomeTempRain);
} }
}); });
} }
@ -112,7 +112,7 @@ public class AsyncChunk implements Chunk {
return whenLoaded(new RunnableVal<Entity[]>() { return whenLoaded(new RunnableVal<Entity[]>() {
@Override @Override
public void run(Entity[] value) { public void run(Entity[] value) {
world.getChunkAt(x, z).getEntities(); world.getBukkitWorld().getChunkAt(x, z).getEntities();
} }
}); });
} }
@ -125,7 +125,7 @@ public class AsyncChunk implements Chunk {
return TaskManager.IMP.sync(new RunnableVal<BlockState[]>() { return TaskManager.IMP.sync(new RunnableVal<BlockState[]>() {
@Override @Override
public void run(BlockState[] value) { public void run(BlockState[] value) {
this.value = world.getChunkAt(x, z).getTileEntities(); this.value = world.getBukkitWorld().getChunkAt(x, z).getTileEntities();
} }
}); });
} }