mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Biome corrections
This commit is contained in:
parent
4276359219
commit
698fa18082
1 changed files with 10 additions and 1 deletions
|
@ -70,6 +70,15 @@ public abstract class PlotGenerator extends ChunkGenerator {
|
||||||
return (List<BlockPopulator>)(List<?>) getPopulators(WorldEvents.getName(world));
|
return (List<BlockPopulator>)(List<?>) getPopulators(WorldEvents.getName(world));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Biome getBiome(String input) {
|
||||||
|
for (Biome biome : Biome.values()) {
|
||||||
|
if (biome.name().equalsIgnoreCase(input)) {
|
||||||
|
return biome;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Biome.FOREST;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public short[][] generateExtBlockSections(World world, Random r, int cx, int cz, BiomeGrid biomes) {
|
public short[][] generateExtBlockSections(World world, Random r, int cx, int cz, BiomeGrid biomes) {
|
||||||
final int prime = 13;
|
final int prime = 13;
|
||||||
|
@ -83,7 +92,7 @@ public abstract class PlotGenerator extends ChunkGenerator {
|
||||||
plotworld = getNewPlotWorld(world.getName());
|
plotworld = getNewPlotWorld(world.getName());
|
||||||
PlotSquared.addPlotWorld(world.getName(), plotworld, getPlotManager());
|
PlotSquared.addPlotWorld(world.getName(), plotworld, getPlotManager());
|
||||||
}
|
}
|
||||||
Biome biome = Biome.valueOf(plotworld.PLOT_BIOME);
|
Biome biome = getBiome(plotworld.PLOT_BIOME);
|
||||||
this.X = cx << 4;
|
this.X = cx << 4;
|
||||||
this.Z = cz << 4;
|
this.Z = cz << 4;
|
||||||
if (ChunkManager.FORCE_PASTE) {
|
if (ChunkManager.FORCE_PASTE) {
|
||||||
|
|
Loading…
Reference in a new issue