Sorry to revive this dead post, but, I had the same problem and I went on searching more.
The solution is to add if (event.state.getBlock() == Blocks.ice)
Since this link was the first link in a Google search I thought I would add on to it. Sorry again for reviving this dead post.