misc cleanup

This commit is contained in:
octarine-noise
2014-09-06 11:49:16 +02:00
parent e32f63ee3a
commit 81fbced1c8
2 changed files with 2 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ public class BetterFoliage {
} }
@Mod.EventHandler @Mod.EventHandler
public void posInit(FMLPostInitializationEvent event) { public void postInit(FMLPostInitializationEvent event) {
if (event.getSide() == Side.CLIENT) { if (event.getSide() == Side.CLIENT) {
Config.getDefaultBiomes(); Config.getDefaultBiomes();
Config.readConfig(new File(configDir, "betterfoliage.cfg")); Config.readConfig(new File(configDir, "betterfoliage.cfg"));

View File

@@ -100,6 +100,7 @@ public class EntityFXFallingLeaves extends EntityFX {
protected void addVertex(Tessellator tessellator, Double3 coord, double u, double v) { protected void addVertex(Tessellator tessellator, Double3 coord, double u, double v) {
tessellator.addVertexWithUV(coord.x, coord.y, coord.z, u, v); tessellator.addVertexWithUV(coord.x, coord.y, coord.z, u, v);
} }
/** Calculates and sets the color of the particle by blending the average color of the block texture with the current biome color /** Calculates and sets the color of the particle by blending the average color of the block texture with the current biome color
* Blending is done in HSB color space, weighted by the relative saturation of the colors * Blending is done in HSB color space, weighted by the relative saturation of the colors
* @param textureAvgColor average color of the block texture * @param textureAvgColor average color of the block texture