I am making a mod for salting crops, and I am trying to implement World.setBlock(int, int, int, Block) inside an item's onItemUse event. Instead of replacing a clicked block with a salted ground block, it replaces it with air.
Code: https://gist.github.com/qsysmine/d710422697146b91f0c2