Kristoffer 23 Share Posted February 20, 2015 (edited) For some reason else if (player.getTile().distance(new Tile(2532, 3546, 1)) < 2) { returns true even after I climb down the ladder, is it not detecting the plane change or should I do this differently? Edited February 20, 2015 by Kristoffer Link to comment Share on other sites More sharing options...
Botre 27 Share Posted February 20, 2015 For some reason else if (player.getTile().distance(new Tile(2532, 3546, 1)) < 2) { returns true even after I climb down the ladder, is it not detected the plane change or should I do this differently? I'm not sure if planes are accounted for in the distance calculation, I doubt it actually. Just add a plane check Link to comment Share on other sites More sharing options...
Nuclear Nezz 1993 Share Posted February 20, 2015 I'm not sure if planes are accounted for in the distance calculation, I doubt it actually. Just add a plane check Botre is right, we don't account for plane in distance checks. :x I'll put it on my list of things to look at though. Link to comment Share on other sites More sharing options...
Recommended Posts