From 81fbced1c8b155b6806481f319b39719a826d5f8 Mon Sep 17 00:00:00 2001 From: octarine-noise Date: Sat, 6 Sep 2014 11:49:16 +0200 Subject: [PATCH] misc cleanup --- src/main/java/mods/betterfoliage/BetterFoliage.java | 2 +- .../betterfoliage/client/render/impl/EntityFXFallingLeaves.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/mods/betterfoliage/BetterFoliage.java b/src/main/java/mods/betterfoliage/BetterFoliage.java index 96edf36..dacd9fd 100644 --- a/src/main/java/mods/betterfoliage/BetterFoliage.java +++ b/src/main/java/mods/betterfoliage/BetterFoliage.java @@ -37,7 +37,7 @@ public class BetterFoliage { } @Mod.EventHandler - public void posInit(FMLPostInitializationEvent event) { + public void postInit(FMLPostInitializationEvent event) { if (event.getSide() == Side.CLIENT) { Config.getDefaultBiomes(); Config.readConfig(new File(configDir, "betterfoliage.cfg")); diff --git a/src/main/java/mods/betterfoliage/client/render/impl/EntityFXFallingLeaves.java b/src/main/java/mods/betterfoliage/client/render/impl/EntityFXFallingLeaves.java index fd9846b..189f2e6 100644 --- a/src/main/java/mods/betterfoliage/client/render/impl/EntityFXFallingLeaves.java +++ b/src/main/java/mods/betterfoliage/client/render/impl/EntityFXFallingLeaves.java @@ -100,6 +100,7 @@ public class EntityFXFallingLeaves extends EntityFX { protected void addVertex(Tessellator tessellator, Double3 coord, double u, double 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 * Blending is done in HSB color space, weighted by the relative saturation of the colors * @param textureAvgColor average color of the block texture