BuildCraft 7.0.10

This commit is contained in:
asiekierka 2015-06-16 08:06:34 +02:00
parent fc62748f63
commit 79ca53e1bc
5 changed files with 8 additions and 9 deletions

View file

@ -5,6 +5,7 @@ Additions:
Improvements: Improvements:
* Builders now show the amount of required items up to 99K instead of 999 (asie)
* Optimizations to Builder/Filler code (asie) * Optimizations to Builder/Filler code (asie)
* Tweaks to water spring generation (asie) * Tweaks to water spring generation (asie)

View file

@ -1,3 +1,3 @@
1.6.4:BuildCraft:4.2.2 1.6.4:BuildCraft:4.2.2
1.7.2:BuildCraft:6.0.16 1.7.2:BuildCraft:6.0.16
1.7.10:BuildCraft:7.0.9 1.7.10:BuildCraft:7.0.10

View file

@ -130,7 +130,6 @@ import buildcraft.core.DefaultProps;
import buildcraft.core.InterModComms; import buildcraft.core.InterModComms;
import buildcraft.core.Version; import buildcraft.core.Version;
import buildcraft.core.blueprints.SchematicRegistry; import buildcraft.core.blueprints.SchematicRegistry;
import buildcraft.core.builders.patterns.FillerPattern;
import buildcraft.core.builders.schematics.SchematicBlockCreative; import buildcraft.core.builders.schematics.SchematicBlockCreative;
import buildcraft.core.builders.schematics.SchematicFree; import buildcraft.core.builders.schematics.SchematicFree;
import buildcraft.core.builders.schematics.SchematicIgnore; import buildcraft.core.builders.schematics.SchematicIgnore;

View file

@ -13,7 +13,6 @@ import java.util.Random;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import cpw.mods.fml.common.eventhandler.Event.Result; import cpw.mods.fml.common.eventhandler.Event.Result;
import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.event.terraingen.PopulateChunkEvent; import net.minecraftforge.event.terraingen.PopulateChunkEvent;
@ -40,14 +39,14 @@ public class SpringPopulate {
} }
private void doPopulate(World world, Random random, int x, int z) { private void doPopulate(World world, Random random, int x, int z) {
// A spring will be generated every 40th chunk. int dimId = world.provider.dimensionId;
if (random.nextFloat() > 0.025f) { // No water springs will generate in the Nether or End.
if (dimId == -1 || dimId == 1) {
return; return;
} }
// Do not generate water in the End or the Nether // A spring will be generated every 40th chunk.
BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(x, z); if (random.nextFloat() > 0.025f) {
if (biomegenbase.biomeID == BiomeGenBase.sky.biomeID || biomegenbase.biomeID == BiomeGenBase.hell.biomeID) {
return; return;
} }