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:
* Builders now show the amount of required items up to 99K instead of 999 (asie)
* Optimizations to Builder/Filler code (asie)
* Tweaks to water spring generation (asie)

View file

@ -1,3 +1,3 @@
1.6.4:BuildCraft:4.2.2
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.Version;
import buildcraft.core.blueprints.SchematicRegistry;
import buildcraft.core.builders.patterns.FillerPattern;
import buildcraft.core.builders.schematics.SchematicBlockCreative;
import buildcraft.core.builders.schematics.SchematicFree;
import buildcraft.core.builders.schematics.SchematicIgnore;

View file

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