FIx for AsyncChunk
This commit is contained in:
parent
e994c765fa
commit
5cc5ce5537
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user