Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
For some reason the chunkGenerator is SpongeChunkGeneratorForge when it should be LandiaChunkGenerator.
  • Loading branch information
LXGaming committed Feb 6, 2019
1 parent 553164b commit 2b2cdc1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class CinnamonWorldgen implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,
IChunkProvider chunkProvider) {
if (chunkGenerator instanceof LandiaChunkGenerator) {
if (world.provider instanceof LandiaWorldProvider) {
BlockPos pos = new BlockPos(chunkX*16+8, 0, chunkZ*16+8);
if (allowedBiomes.contains(world.getBiome(pos))) {
int xSpawn = pos.getX() + random.nextInt(16);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class LandiaOreWorldgen implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,
IChunkProvider chunkProvider) {
if (chunkGenerator instanceof LandiaChunkGenerator) {
if (world.provider instanceof LandiaWorldProvider) {
generateOres(world, random, new BlockPos(chunkX*16, 0, chunkZ*16));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected boolean isBlockBelowSuitable(IBlockState state) {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,
IChunkProvider chunkProvider) {
if (chunkGenerator instanceof LandiaChunkGenerator) {
if (world.provider instanceof LandiaWorldProvider) {
this.genPlantNormally(world, random, new BlockPos(chunkX*16, 0, chunkZ*16), getState(), getAmount());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class OliveWorldgen implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,
IChunkProvider chunkProvider) {
if (chunkGenerator instanceof LandiaChunkGenerator) {
if (world.provider instanceof LandiaWorldProvider) {
BlockPos pos = new BlockPos(chunkX*16+8, 0, chunkZ*16+8);
if (allowedBiomes.contains(world.getBiome(pos))) {
int xSpawn = pos.getX() + random.nextInt(16);
Expand Down

0 comments on commit 2b2cdc1

Please sign in to comment.