Refactoring.
This commit is contained in:
@@ -6,6 +6,7 @@ import org.bukkit.World;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
|
||||
import ca.recrown.islandsurvivalcraft.world.generation.IslandBiomeGenerator;
|
||||
import ca.recrown.islandsurvivalcraft.world.generation.IslandWorldGenerator;
|
||||
|
||||
public class IslandSurvivalCraftChunkGenerator extends ChunkGenerator {
|
||||
private final IslandWorldGeneratorAlternator alternator;
|
||||
|
@@ -7,6 +7,7 @@ import java.util.UUID;
|
||||
import org.bukkit.World;
|
||||
|
||||
import ca.recrown.islandsurvivalcraft.world.generation.IslandBiomeGenerator;
|
||||
import ca.recrown.islandsurvivalcraft.world.generation.IslandWorldGenerator;
|
||||
|
||||
/**
|
||||
* Alternates the data used on a per world basis.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package ca.recrown.islandsurvivalcraft.world;
|
||||
package ca.recrown.islandsurvivalcraft.world.generation;
|
||||
|
||||
import java.security.InvalidAlgorithmParameterException;
|
||||
import java.util.Random;
|
||||
@@ -9,8 +9,8 @@ import org.bukkit.block.Biome;
|
||||
import org.bukkit.generator.ChunkGenerator.BiomeGrid;
|
||||
import org.bukkit.generator.ChunkGenerator.ChunkData;
|
||||
|
||||
import ca.recrown.islandsurvivalcraft.world.generation.BedrockGenerator;
|
||||
import ca.recrown.islandsurvivalcraft.world.generation.IslandBiomeGenerator;
|
||||
import ca.recrown.islandsurvivalcraft.world.BiomeSelector;
|
||||
import ca.recrown.islandsurvivalcraft.world.IslandWorldMapper;
|
||||
import ca.recrown.islandsurvivalcraft.world.shaders.WorldHeightShader;
|
||||
|
||||
/**
|
@@ -50,7 +50,7 @@ public class WorldHeightShader {
|
||||
height = (int) (getNormalizedHeightModifier(worldX, worldZ) * 5D + baseValue);
|
||||
}
|
||||
|
||||
if (height > worldHeight) throw new InvalidAlgorithmParameterException("Resulting height is greater than world height!!! Biome: " + biomeName);
|
||||
if (height > worldHeight) throw new InvalidAlgorithmParameterException("Resulting height is greater than world height! Biome this occurred on: " + biomeName);
|
||||
return height;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user