--- ../src-base/minecraft/net/minecraft/entity/passive/EntityOcelot.java
+++ ../src-work/minecraft/net/minecraft/entity/passive/EntityOcelot.java
@@ -276,7 +276,7 @@
 
             Block block = this.field_70170_p.func_180495_p(blockpos.func_177977_b()).func_177230_c();
 
-            if (block == Blocks.field_150349_c || block.func_149688_o() == Material.field_151584_j)
+            if (block == Blocks.field_150349_c || block.isLeaves(field_70170_p, blockpos.func_177977_b()))
             {
                 return true;
             }
