fix random traverse sprinting

This commit is contained in:
Leijurv 2018-08-07 08:01:26 -07:00
parent 1210db5d37
commit f9a819b6a5
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -141,6 +141,7 @@ public class PathExecutor extends Behavior {
System.out.println("Movement done, next path"); System.out.println("Movement done, next path");
pathPosition++; pathPosition++;
ticksOnCurrent = 0; ticksOnCurrent = 0;
onTick(event);
} else { } else {
ticksOnCurrent++; ticksOnCurrent++;
if (ticksOnCurrent > movement.recalculateCost() + 100) { if (ticksOnCurrent > movement.recalculateCost() + 100) {