September 14, 20178 yr 1 hour ago, tranzystor3 said: I dont get that post. WHY IS HE SLEEPING UNTIL BANK IS OPEN IF HE ONLY GETS TO THAT PART IF THE BANK IS OPEN!?!??!
September 14, 20178 yr Author 1 hour ago, tranzystor3 said: I dont get that post. if (getBank().isOpen()){ //bank stuff } else { // open the bank if (getBank().isOpen()) //it should be bank.open() sleepUntil(() -> getBank().isOpen(), 2400); } hope it makes sense now
Create an account or sign in to comment