Better naming for "legacy" block state populator

This commit is contained in:
dordsor21 2022-06-11 16:32:54 +01:00
parent 2a90015037
commit 70baca7145
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 3 additions and 5 deletions

View File

@ -37,8 +37,6 @@ import com.plotsquared.core.plot.PlotArea;
import com.plotsquared.core.plot.world.PlotAreaManager; import com.plotsquared.core.plot.world.PlotAreaManager;
import com.plotsquared.core.queue.ScopedQueueCoordinator; import com.plotsquared.core.queue.ScopedQueueCoordinator;
import com.plotsquared.core.util.ChunkManager; import com.plotsquared.core.util.ChunkManager;
import com.sk89q.worldedit.WorldEdit;
import com.sk89q.worldedit.extension.platform.Capability;
import com.sk89q.worldedit.math.BlockVector2; import com.sk89q.worldedit.math.BlockVector2;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.block.Biome; import org.bukkit.block.Biome;
@ -78,7 +76,7 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap
if (minecraftMinorVersion >= 17) { if (minecraftMinorVersion >= 17) {
this.populators.add(new BlockStatePopulator(this.plotGenerator)); this.populators.add(new BlockStatePopulator(this.plotGenerator));
} else { } else {
this.populators.add(new BlockStatePopulator116(this.plotGenerator)); this.populators.add(new LegacyBlockStatePopulator(this.plotGenerator));
} }
this.full = true; this.full = true;
} }

View File

@ -44,14 +44,14 @@ import org.jetbrains.annotations.NotNull;
import java.util.Random; import java.util.Random;
final class BlockStatePopulator116 extends BlockPopulator { final class LegacyBlockStatePopulator extends BlockPopulator {
private final IndependentPlotGenerator plotGenerator; private final IndependentPlotGenerator plotGenerator;
/** /**
* @since TODO * @since TODO
*/ */
public BlockStatePopulator116( public LegacyBlockStatePopulator(
final @NonNull IndependentPlotGenerator plotGenerator final @NonNull IndependentPlotGenerator plotGenerator
) { ) {
this.plotGenerator = plotGenerator; this.plotGenerator = plotGenerator;