Added the option to disable ocean generation

This commit is contained in:
Adubbz 2013-04-23 06:28:21 +10:00
parent 874824f924
commit 9013e314a3
7 changed files with 219 additions and 205 deletions

View file

@ -18,7 +18,7 @@
## Changelog ##
Version 0.5.3 (Unreleased)
Version 0.5.2 (Unreleased)
- Added an API for other mod developers
- Added support for Biomes O Plenty woods in Thermal Expansion sawmills
- Significantly compressed the amount of Block IDs used, however breaks existing worlds (Sorry, we are looking into ways of converting them)
@ -33,6 +33,7 @@
- Fixed an issue causing sound files to be created on the desktop
- Biomes O Plenty saplings now work in the Forestry fermenter
- Biomes O Plenty flowers can now be used with bees
- Added a config option for generating vanilla ocean biomes
Version 0.5.1 '17-04-2013'
- Fixed server crash with mudballs

View file

@ -35,7 +35,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.6.0")
@Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.5.2")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class BiomesOPlenty
{

View file

@ -93,6 +93,8 @@ public class BOPConfiguration {
public static boolean wetlandGen;
public static boolean woodlandGen;
public static boolean oceanGen;
public static boolean plainsGen;
public static boolean desertGen;
public static boolean extremeHillsGen;
@ -414,6 +416,8 @@ public class BOPConfiguration {
wetlandGen = config.get("Biomes To Generate", "Wetland", true).getBoolean(false);
woodlandGen = config.get("Biomes To Generate", "Woodland", true).getBoolean(false);
oceanGen = config.get("Vanilla Biomes To Generate", "Ocean", true).getBoolean(false);
// Get Terrain Block ID's
mudID = config.getTerrainBlock("Terrain Block IDs", "Mud ID", 160, null).getInt();
driedDirtID = config.getTerrainBlock("Terrain Block IDs", "Dried Dirt ID", 161, null).getInt();

View file

@ -19,6 +19,10 @@ public class WTBiomesOP extends WorldTypeBase
this.removeBiome(BiomeGenBase.taiga);
this.removeBiome(BiomeGenBase.swampland);
this.removeBiome(BiomeGenBase.jungle);
if (BOPConfiguration.oceanGen)
{
this.removeBiome(BiomeGenBase.ocean);
}
if (BOPConfiguration.alpsGen == true)
{

View file

@ -1,5 +1,6 @@
package biomesoplenty.worldtype;
import biomesoplenty.configuration.BOPConfiguration;
import net.minecraft.world.World;
import net.minecraft.world.WorldType;
import net.minecraft.world.biome.BiomeGenBase;
@ -31,5 +32,9 @@ public class WorldTypeBase extends WorldType
this.removeBiome(BiomeGenBase.taiga);
this.removeBiome(BiomeGenBase.swampland);
this.removeBiome(BiomeGenBase.jungle);
if (BOPConfiguration.oceanGen)
{
this.removeBiome(BiomeGenBase.ocean);
}
}
}

View file

@ -2,7 +2,7 @@
"modid": "BiomesOPlenty",
"name": "Biomes O' Plenty",
"description": "Adds 72 new, unique biomes!",
"version": "0.6.0",
"version": "0.5.2",
"mcversion": "1.5.1",
"url": "www.minecraftforum.net/topic/1495041-",
"updateUrl": "",