Navigation Menu

Skip to content

Commit

Permalink
use CTM icon for connected grass
Browse files Browse the repository at this point in the history
  • Loading branch information
octarine-noise committed Mar 11, 2015
1 parent 22652de commit c49a3cd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -8,6 +8,7 @@
import mods.betterfoliage.client.render.RenderBlockAOBase;
import mods.betterfoliage.common.config.Config;
import mods.betterfoliage.common.util.Double3;
import mods.betterfoliage.common.util.RenderUtils;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.RenderBlocks;
Expand Down Expand Up @@ -51,7 +52,7 @@ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block b
Material topMaterial = blockAccess.getBlock(x, y + 1, z).getMaterial();
isSnowTop = (topMaterial == Material.snow || topMaterial == Material.craftedSnow);
checkConnectedGrass(x, y, z);
grassTopIcon = block.getIcon(blockAccess, x, y, z, ForgeDirection.UP.ordinal());
grassTopIcon = RenderUtils.getIcon(blockAccess, block, x, y, z, ForgeDirection.UP);
biomeColor = block.colorMultiplier(blockAccess, x, y, z);

renderWorldBlockBase(2, world, x, y, z, block, modelId, renderer);
Expand Down

0 comments on commit c49a3cd

Please sign in to comment.