mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Address comments
This commit is contained in:
parent
f369ccb30e
commit
10c9425826
@ -160,8 +160,8 @@ public class BukkitPlotGenerator extends ChunkGenerator
|
|||||||
@NonNull BiomeGrid biome
|
@NonNull BiomeGrid biome
|
||||||
) {
|
) {
|
||||||
|
|
||||||
int minY = BukkitWorld.getMinWorldHeight(world);
|
int minY = BukkitWorld.getMinWorldHeight(world);
|
||||||
int maxY = BukkitWorld.getMaxWorldHeight(world);
|
int maxY = BukkitWorld.getMaxWorldHeight(world);
|
||||||
GenChunk result = new GenChunk(minY, maxY);
|
GenChunk result = new GenChunk(minY, maxY);
|
||||||
if (this.getPlotGenerator() instanceof SingleWorldGenerator) {
|
if (this.getPlotGenerator() instanceof SingleWorldGenerator) {
|
||||||
if (result.getChunkData() != null) {
|
if (result.getChunkData() != null) {
|
||||||
|
@ -150,8 +150,8 @@ public final class BukkitChunkCoordinator extends ChunkCoordinator {
|
|||||||
|
|
||||||
Chunk chunk = this.availableChunks.poll();
|
Chunk chunk = this.availableChunks.poll();
|
||||||
if (chunk == null) {
|
if (chunk == null) {
|
||||||
if (this.availableChunks.size() == 0) {
|
if (this.availableChunks.isEmpty()) {
|
||||||
if (this.requestedChunks.size() == 0) {
|
if (this.requestedChunks.isEmpty()) {
|
||||||
finish();
|
finish();
|
||||||
} else {
|
} else {
|
||||||
requestBatch();
|
requestBatch();
|
||||||
|
Loading…
Reference in New Issue
Block a user