Fixed the nether floor being made of grass
This commit is contained in:
parent
33b90334b4
commit
dec508a1f8
5 changed files with 12 additions and 16 deletions
|
@ -24,7 +24,7 @@ import biomesoplenty.common.helpers.CreativeTabsBOP;
|
||||||
import biomesoplenty.common.integration.TreecapitatorIntegration;
|
import biomesoplenty.common.integration.TreecapitatorIntegration;
|
||||||
import biomesoplenty.common.network.PacketPipeline;
|
import biomesoplenty.common.network.PacketPipeline;
|
||||||
import biomesoplenty.common.utils.BOPModInfo;
|
import biomesoplenty.common.utils.BOPModInfo;
|
||||||
import biomesoplenty.common.world.WorldProviderBopHell;
|
import biomesoplenty.common.world.WorldProviderBOPHell;
|
||||||
import biomesoplenty.common.world.WorldProviderPromised;
|
import biomesoplenty.common.world.WorldProviderPromised;
|
||||||
import biomesoplenty.common.world.WorldTypeBOP;
|
import biomesoplenty.common.world.WorldTypeBOP;
|
||||||
import biomesoplenty.common.world.decoration.ForcedDecorators;
|
import biomesoplenty.common.world.decoration.ForcedDecorators;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package biomesoplenty.common.core;
|
package biomesoplenty.common.core;
|
||||||
|
|
||||||
import static biomesoplenty.common.configuration.BOPConfigurationIDs.promisedLandDimID;
|
import static biomesoplenty.common.configuration.BOPConfigurationIDs.promisedLandDimID;
|
||||||
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
import net.minecraft.world.biome.BiomeGenBase;
|
||||||
import net.minecraft.world.biome.WorldChunkManager;
|
import net.minecraft.world.biome.WorldChunkManager;
|
||||||
import net.minecraftforge.common.BiomeDictionary;
|
import net.minecraftforge.common.BiomeDictionary;
|
||||||
|
@ -88,6 +88,7 @@ public class BOPBiomes
|
||||||
registerBiomes();
|
registerBiomes();
|
||||||
addBiomesToDictionary();
|
addBiomesToDictionary();
|
||||||
addSpawnBiomes();
|
addSpawnBiomes();
|
||||||
|
overrideBiomeProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerBiomes()
|
private static void registerBiomes()
|
||||||
|
@ -337,6 +338,12 @@ public class BOPBiomes
|
||||||
BiomeDictionary.registerBiomeType(BOPBiomeHelper.get("woodland"), Type.FOREST);
|
BiomeDictionary.registerBiomeType(BOPBiomeHelper.get("woodland"), Type.FOREST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void overrideBiomeProperties()
|
||||||
|
{
|
||||||
|
BiomeGenBase.hell.topBlock = Blocks.netherrack;
|
||||||
|
BiomeGenBase.hell.fillerBlock = Blocks.netherrack;
|
||||||
|
}
|
||||||
|
|
||||||
public static void registerOnlyBiome(BOPBiomeEntry biome)
|
public static void registerOnlyBiome(BOPBiomeEntry biome)
|
||||||
{
|
{
|
||||||
onlyBiome = biome;
|
onlyBiome = biome;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package biomesoplenty.common.core;
|
package biomesoplenty.common.core;
|
||||||
|
|
||||||
import biomesoplenty.common.configuration.BOPConfigurationIDs;
|
import biomesoplenty.common.configuration.BOPConfigurationIDs;
|
||||||
import biomesoplenty.common.world.WorldProviderBopHell;
|
import biomesoplenty.common.world.WorldProviderBOPHell;
|
||||||
import biomesoplenty.common.world.WorldProviderPromised;
|
import biomesoplenty.common.world.WorldProviderPromised;
|
||||||
import net.minecraftforge.common.DimensionManager;
|
import net.minecraftforge.common.DimensionManager;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ public class BOPDimensions
|
||||||
|
|
||||||
private static void registerProviders()
|
private static void registerProviders()
|
||||||
{
|
{
|
||||||
DimensionManager.registerProviderType(-1, WorldProviderBopHell.class, true);
|
DimensionManager.registerProviderType(-1, WorldProviderBOPHell.class, true);
|
||||||
DimensionManager.registerProviderType(BOPConfigurationIDs.promisedLandDimID, WorldProviderPromised.class, false);
|
DimensionManager.registerProviderType(BOPConfigurationIDs.promisedLandDimID, WorldProviderPromised.class, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,6 @@ public class WorldChunkManagerBOPHell extends WorldChunkManager
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
//TODO: findBiomePosition
|
|
||||||
public ChunkPosition findBiomePosition(int par1, int par2, int par3, List par4List, Random par5Random)
|
public ChunkPosition findBiomePosition(int par1, int par2, int par3, List par4List, Random par5Random)
|
||||||
{
|
{
|
||||||
IntCache.resetIntCache();
|
IntCache.resetIntCache();
|
||||||
|
@ -263,19 +262,9 @@ public class WorldChunkManagerBOPHell extends WorldChunkManager
|
||||||
return var13;
|
return var13;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Calls the WorldChunkManager's biomeCache.cleanupCache()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void cleanupCache()
|
public void cleanupCache()
|
||||||
{
|
{
|
||||||
biomeCache.cleanupCache();
|
biomeCache.cleanupCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
//public GenLayer[] getModdedBiomeGenerators(WorldType worldType, long seed, GenLayer[] original)
|
|
||||||
//{
|
|
||||||
// WorldTypeEvent.InitBiomeGens event = new WorldTypeEvent.InitBiomeGens(worldType, seed, original);
|
|
||||||
// MinecraftForge.TERRAIN_GEN_BUS.post(event);
|
|
||||||
// return event.newBiomeGens;
|
|
||||||
//}
|
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@ import net.minecraft.world.WorldProviderHell;
|
||||||
import net.minecraft.world.chunk.IChunkProvider;
|
import net.minecraft.world.chunk.IChunkProvider;
|
||||||
import cpw.mods.fml.common.Loader;
|
import cpw.mods.fml.common.Loader;
|
||||||
|
|
||||||
public class WorldProviderBopHell extends WorldProviderHell
|
public class WorldProviderBOPHell extends WorldProviderHell
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void registerWorldChunkManager()
|
public void registerWorldChunkManager()
|
||||||
|
|
Loading…
Reference in a new issue