migrated to Forge built-in GuiConfig

This commit is contained in:
octarine-noise
2014-08-20 00:50:25 +02:00
parent ce37687a1b
commit 8b4967584e
34 changed files with 333 additions and 991 deletions

View File

@@ -2,7 +2,7 @@ package mods.betterfoliage.client;
import java.util.Random;
import mods.betterfoliage.BetterFoliage;
import mods.betterfoliage.common.config.Config;
import net.minecraft.client.Minecraft;
import net.minecraft.world.World;
import net.minecraftforge.event.world.WorldEvent;
@@ -27,8 +27,8 @@ public class WindTracker {
nextChange = world.getWorldInfo().getWorldTime() + changeTime;
double direction = 2.0 * Math.PI * random.nextDouble();
double speed = Math.abs(random.nextGaussian()) * BetterFoliage.config.fallingLeavesWindStrength.value;
if (world.isRaining()) speed += Math.abs(random.nextGaussian()) * BetterFoliage.config.fallingLeavesStormStrength.value;
double speed = Math.abs(random.nextGaussian()) * Config.leafFXWindStrength;
if (world.isRaining()) speed += Math.abs(random.nextGaussian()) * Config.leafFXStormStrength;
targetX = Math.cos(direction) * speed;
targetZ = Math.sin(direction) * speed;