Fix generated only chunk flag not working correctly
This commit is contained in:
parent
24c0864ff8
commit
abf484a161
|
@ -375,6 +375,11 @@ public class RandomSearcher {
|
|||
randomLoc.setZ(((center.getBlockZ() >> 4) + randChunkZ) * 16);
|
||||
PaperLib.getChunkAtAsync(randomLoc, generatedOnly).thenApply(c -> {
|
||||
checks++;
|
||||
if (c == null) {
|
||||
// Chunk not generated, test another one
|
||||
checkRandom(future);
|
||||
return false;
|
||||
}
|
||||
int indexOffset = random.nextInt(RANDOM_LIST.size());
|
||||
Location foundLoc = null;
|
||||
for (int i = 0; i < RANDOM_LIST.size(); i++) {
|
||||
|
|
Loading…
Reference in New Issue