Posted 05 June 2012 - 11:52 PM
So i keep getting this "too long without yielding" on my turtle, i had read that i need a OS Event to keep this from happening, but how is it applied on this code? i use C# but only 3 days on this language :)/>/>
This particular code is executed after my turtle docks to a load/unload station, 1st is drained and then is filled whit stone so this "icount" is to ensure that all spaces are empty.
*puts puppy eyes*
This particular code is executed after my turtle docks to a load/unload station, 1st is drained and then is filled whit stone so this "icount" is to ensure that all spaces are empty.
while icount>0 do
icoun=0
icount=icount +turtle.getItemCount(1)
icount=icount +turtle.getItemCount(2)
icount=icount +turtle.getItemCount(3)
icount=icount +turtle.getItemCount(4)
icount=icount +turtle.getItemCount(5)
icount=icount +turtle.getItemCount(6)
icount=icount +turtle.getItemCount(7)
icount=icount +turtle.getItemCount(8)
icount=icount +turtle.getItemCount(9)
end
*puts puppy eyes*