Look into the Configs; every quest has a certain config from which you can see the state of the quest; meaning you can also determine when it has been completed
It's very weird but for some users the GUI pops up weird like this. To fix this --> minimize the GUI and then open it again; it will be loaded like it should by then
Only do
ironRocks = getObjects().closest(n -> n.getId() == 7488 && ((n.getX() == 1234 && n.getY() == 1234) || (n.getX() == 1234 && n.getY() == 1234)));
In the actual mining state, no need to do that in a state where you won't need to know any information about that object.
Please do null-checking aswell :)