This is not a bug. The server you are on is using a plugin called XrayObfuscator that changes the look of all stones to ores so the real ores are disguised. There is no way to bypass it as the server is sending you chunks to look like this. There is no way around it, now play like a man get ur diamonds for real.