Bitshift Posted May 28, 2016 Share Posted May 28, 2016 Basically, as you can tell by the title, I'm getting this error right here: Here is a snippet of this code, although I know it works, but only when this actual area is within a certain distance from the player. Position randomBankArea = new Position(Banks.EDGEVILLE.getRandomPosition()); I understand very clearly what the error is, but what I don't, however, is what exactly is causing this? I've never encountered this problem before, but I know there is definitely a simple reason behind it. Any ideas? Quote Link to comment Share on other sites More sharing options...
GaetanoH Posted May 28, 2016 Share Posted May 28, 2016 getRandomPosition could happen to be a position that could not be reached so I guess that's why So just do getWalking().walk(position); Quote Link to comment Share on other sites More sharing options...
Bitshift Posted May 28, 2016 Author Share Posted May 28, 2016 (edited) Scratch that. Tested the code with another predefined bank location, and it worked. I guess Banks.EDGEVILLE is currently not working. Edited May 28, 2016 by Bitshift 1 Quote Link to comment Share on other sites More sharing options...