fix random traverse sprinting
This commit is contained in:
parent
1210db5d37
commit
f9a819b6a5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user