From 70baca7145739a59a7a36dc2aa1c9a9d1901c6dd Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 11 Jun 2022 16:32:54 +0100 Subject: [PATCH] Better naming for "legacy" block state populator --- .../com/plotsquared/bukkit/generator/BukkitPlotGenerator.java | 4 +--- ...kStatePopulator116.java => LegacyBlockStatePopulator.java} | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) rename Bukkit/src/main/java/com/plotsquared/bukkit/generator/{BlockStatePopulator116.java => LegacyBlockStatePopulator.java} (97%) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java index a537ee615..689cc899f 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BukkitPlotGenerator.java @@ -37,8 +37,6 @@ import com.plotsquared.core.plot.PlotArea; import com.plotsquared.core.plot.world.PlotAreaManager; import com.plotsquared.core.queue.ScopedQueueCoordinator; 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 org.bukkit.World; import org.bukkit.block.Biome; @@ -78,7 +76,7 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap if (minecraftMinorVersion >= 17) { this.populators.add(new BlockStatePopulator(this.plotGenerator)); } else { - this.populators.add(new BlockStatePopulator116(this.plotGenerator)); + this.populators.add(new LegacyBlockStatePopulator(this.plotGenerator)); } this.full = true; } diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BlockStatePopulator116.java b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/LegacyBlockStatePopulator.java similarity index 97% rename from Bukkit/src/main/java/com/plotsquared/bukkit/generator/BlockStatePopulator116.java rename to Bukkit/src/main/java/com/plotsquared/bukkit/generator/LegacyBlockStatePopulator.java index ca249a4f7..5b312c788 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/generator/BlockStatePopulator116.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/generator/LegacyBlockStatePopulator.java @@ -44,14 +44,14 @@ import org.jetbrains.annotations.NotNull; import java.util.Random; -final class BlockStatePopulator116 extends BlockPopulator { +final class LegacyBlockStatePopulator extends BlockPopulator { private final IndependentPlotGenerator plotGenerator; /** * @since TODO */ - public BlockStatePopulator116( + public LegacyBlockStatePopulator( final @NonNull IndependentPlotGenerator plotGenerator ) { this.plotGenerator = plotGenerator;