Generic cleanup of the org.bukkit.craftbukkit classes.
This commit is contained in:
@@ -17,7 +17,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
private final Random random;
|
||||
|
||||
public CustomChunkGenerator(World world, long seed, ChunkGenerator generator) {
|
||||
this.world = (WorldServer)world;
|
||||
this.world = (WorldServer) world;
|
||||
this.seed = seed;
|
||||
this.generator = generator;
|
||||
|
||||
@@ -29,7 +29,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
}
|
||||
|
||||
public Chunk getOrCreateChunk(int x, int z) {
|
||||
random.setSeed((long)x * 341873128712L + (long)z * 132897987541L);
|
||||
random.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
|
||||
byte[] types = generator.generate(world.getWorld(), random, x, z);
|
||||
|
||||
Chunk chunk = new Chunk(world, types, x, z);
|
||||
|
||||
@@ -22,7 +22,7 @@ public class NormalChunkGenerator extends InternalChunkGenerator {
|
||||
}
|
||||
|
||||
public boolean canSpawn(org.bukkit.World world, int x, int z) {
|
||||
return ((CraftWorld)world).getHandle().worldProvider.a(x, z);
|
||||
return ((CraftWorld) world).getHandle().worldProvider.a(x, z);
|
||||
}
|
||||
|
||||
public List<BlockPopulator> getDefaultPopulators(org.bukkit.World world) {
|
||||
|
||||
Reference in New Issue
Block a user