diff --git a/src/main/java/com/ishikyoo/leavesly/Leavesly.java b/src/main/java/com/ishikyoo/leavesly/Leavesly.java index 47a3ef1..51ce558 100644 --- a/src/main/java/com/ishikyoo/leavesly/Leavesly.java +++ b/src/main/java/com/ishikyoo/leavesly/Leavesly.java @@ -64,6 +64,8 @@ boolean isPlantBlock(Block block) { return true; else if (block == Blocks.FERN) return true; + else if (block == Blocks.TALL_GRASS) + return true; return false; } boolean isValidBlock(Block block) { diff --git a/src/main/java/com/ishikyoo/leavesly/LeaveslyClient.java b/src/main/java/com/ishikyoo/leavesly/LeaveslyClient.java index 2c5869e..674c425 100644 --- a/src/main/java/com/ishikyoo/leavesly/LeaveslyClient.java +++ b/src/main/java/com/ishikyoo/leavesly/LeaveslyClient.java @@ -34,6 +34,7 @@ public class LeaveslyClient implements ClientModInitializer { static final double VINE_MASK = 0.66666666666; static final double SHORT_GRASS_MASK = 0.72156862745; static final double FERN_MASK = 0.64705882352; + static final double TALL_GRASS_MASK = 0.67450980392; static final int SPRUCE_LEAVES_COLOR = FoliageColors.getSpruceColor(); static final int BIRTH_LEAVES_COLOR = FoliageColors.getBirchColor(); @@ -80,6 +81,8 @@ private int getFoliageColor(Block block, BlockRenderView world, BlockPos positio return getMaskedColor(BiomeColors.getGrassColor(world, position), SHORT_GRASS_MASK); } else if (block == Blocks.FERN) { return getMaskedColor(BiomeColors.getGrassColor(world, position), FERN_MASK); + } else if (block == Blocks.TALL_GRASS) { + return getMaskedColor(BiomeColors.getGrassColor(world, position), TALL_GRASS_MASK); } return 0; } @@ -116,7 +119,8 @@ public void onInitializeClient() { Blocks.CHERRY_LEAVES, Blocks.VINE, Blocks.SHORT_GRASS, - Blocks.FERN + Blocks.FERN, + Blocks.TALL_GRASS ); instance = this; }