fix path not derendering once finished

This commit is contained in:
Leijurv 2018-09-15 07:42:03 -07:00
parent 1745ce6a62
commit 9b375e1f5f
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ public class PathExecutor implements Helper {
if (event.getType() == TickEvent.Type.OUT) {
throw new IllegalStateException();
}
if (pathPosition >= path.length() - 1) {
if (pathPosition == path.length() - 1) {
pathPosition++;
}
if (pathPosition >= path.length()) {
return true; // stop bugging me, I'm done
}
BetterBlockPos whereShouldIBe = path.positions().get(pathPosition);