more work on leaf particles
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user