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

View File

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