Well, I'm always getting the block the mouse is hovering over, which is kinda inefficient.
It's only when the game encounters a mouse click that it starts to damage the block, it's coded in such a way that no UI elements can stop it D:
If i continue development after the jam I'll fix all these issues and hopefully make the code more efficient, thanks for the tips though!