Fixed removing beaches from certain biomes

This commit is contained in:
Adubbz 2016-02-09 13:22:04 +11:00
parent c0c6062ded
commit 896e059938
18 changed files with 17 additions and 18 deletions

View file

@ -36,8 +36,6 @@ public class BiomeGenAlps extends BOPBiome
this.addWeight(BOPClimates.TUNDRA, 3);
this.addWeight(BOPClimates.ICE_CAP, 5);
this.beachBiomeId = this.biomeID;
this.topBlock = Blocks.snow.getDefaultState();
this.fillerBlock = Blocks.snow.getDefaultState();

View file

@ -60,7 +60,7 @@ public class BiomeGenBayou extends BOPBiome
this.canGenerateRivers = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.HOT_SWAMP, 10);

View file

@ -50,7 +50,7 @@ public class BiomeGenCanyon extends BOPBiome
this.canSpawnInBiome = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.spawnableCreatureList.clear();

View file

@ -30,7 +30,7 @@ public class BiomeGenCrag extends BOPBiome
this.canGenerateVillages = false;
this.canGenerateRivers = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.COLD_SWAMP, 1);

View file

@ -59,7 +59,7 @@ public class BiomeGenDeadSwamp extends BOPBiome
this.canGenerateRivers = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.COLD_SWAMP, 3);

View file

@ -57,7 +57,7 @@ public class BiomeGenFungiForest extends BOPBiome
this.canSpawnInBiome = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.TROPICAL, 1);

View file

@ -64,7 +64,7 @@ public class BiomeGenLushSwamp extends BOPBiome
this.canGenerateRivers = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.WET_TEMPERATE, 10);

View file

@ -56,7 +56,7 @@ public class BiomeGenMarsh extends BOPBiome
this.canGenerateRivers = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.WET_TEMPERATE, 7);

View file

@ -59,7 +59,7 @@ public class BiomeGenMysticGrove extends BOPBiome
this.canGenerateVillages = false;
this.canSpawnInBiome = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.WET_TEMPERATE, 1);

View file

@ -69,7 +69,7 @@ public class BiomeGenOminousWoods extends BOPBiome
this.canGenerateVillages = false;
this.canSpawnInBiome = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.COLD_SWAMP, 1);

View file

@ -47,7 +47,7 @@ public class BiomeGenOvergrownCliffs extends BOPBiome
this.addWeight(BOPClimates.TROPICAL, 2);
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.spawnableCreatureList.clear();

View file

@ -53,7 +53,7 @@ public class BiomeGenQuagmire extends BOPBiome
this.canGenerateRivers = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.COLD_SWAMP, 2);

View file

@ -47,7 +47,7 @@ public class BiomeGenRainforest extends BOPBiome
this.canGenerateVillages = false;
this.canGenerateRivers = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.spawnableMonsterList.add(new SpawnListEntry(EntityOcelot.class, 2, 1, 1));
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));

View file

@ -45,7 +45,7 @@ public class BiomeGenSacredSprings extends BOPBiome
this.canGenerateRivers = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.TROPICAL, 1);

View file

@ -62,7 +62,7 @@ public class BiomeGenWasteland extends BOPBiome
this.canGenerateVillages = false;
this.canSpawnInBiome = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.WASTELAND, 50);

View file

@ -61,7 +61,7 @@ public class BiomeGenWetland extends BOPBiome
this.canGenerateRivers = false;
this.canGenerateVillages = false;
this.beachBiomeId = this.biomeID;
this.beachBiomeId = -1;
this.addWeight(BOPClimates.WET_TEMPERATE, 7);
this.addWeight(BOPClimates.COLD_SWAMP, 5);

View file

@ -244,6 +244,7 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry
registerBiomes();
registerBiomeDictionaryTags();
//After normal biomes to account for adding custom beaches
initExtendedBiomes();
// save the biome ids to the config file (creating it if it doesn't exist)

View file

@ -76,7 +76,7 @@ public class GenLayerShoreBOP extends BOPGenLayer
if (biome != null && BOPBiomes.REG_INSTANCE.getExtendedBiome(biome) != null)
{
IExtendedBiome extBiome = BOPBiomes.REG_INSTANCE.getExtendedBiome(biome);
setBiomeWithAdjacent(biomeIds, out, x, z, areaWidth, biomeId, extBiome.getBeachId(), OCEANIC_PREDICATE);
setBiomeWithAdjacent(biomeIds, out, x, z, areaWidth, biomeId, extBiome.getBeachId() == -1 ? biomeId : extBiome.getBeachId(), OCEANIC_PREDICATE);
}
else
{