Fix a couple more Guice issues. Refactor read chunks to be a list of chunks rather than CuboidRegion

This commit is contained in:
dordsor21
2020-07-24 14:36:50 +01:00
parent 416e181992
commit 18918eb3a3
13 changed files with 87 additions and 56 deletions

View File

@ -186,8 +186,8 @@ public class BukkitQueueCoordinator extends BasicQueueCoordinator {
}
CuboidRegion region;
Collection<BlockVector2> read = new ArrayList<>();
if ((region = getReadRegion()) != null) {
read = region.getChunks();
if (getReadChunks().size() > 0) {
read.addAll(getReadChunks());
}
chunkCoordinator =
chunkCoordinatorBuilderFactory.create(chunkCoordinatorFactory).inWorld(getWorld())