more work on leaf particles

This commit is contained in:
octarine-noise
2014-08-12 19:02:48 +02:00
parent 2b1cab8e62
commit b365c1cf06
3 changed files with 26 additions and 4 deletions

View File

@@ -102,8 +102,8 @@ public class BetterFoliageClient {
}
public static void onRandomDisplayTick(Block block, World world, int x, int y, int z) {
if (!leaves.matchesID(block)) return;
if (world.getBlock(x, y - 1, z).getMaterial() != Material.air) return;
if (!leaves.matchesID(block) || !world.isAirBlock(x, y - 1, z)) return;
if (Math.random() > 0.25) return;
Minecraft.getMinecraft().effectRenderer.addEffect(new EntityFXFallingLeaves(world, x, y, z));
}