This is the code I am using for the checks
function isCoal() if turtle.suck(1) == false then rednet.send(25, "cFalse") isCoal() else turtle.drop() rednet.send(25, "cTrue") end end
I use a similar code to check the torches chest. The idea behind calling the function again is that the turtle will keep checking the chest until the chest gets restocked. This prevents the turtle from continuing the mining until it has the required items to do so. I think that java is giving this error because it thinks that the turtle is caught in an infinite loop.
Could you suggest a course of action or a fix for this.
Thanks