misc cleanup
This commit is contained in:
@@ -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"));
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user