mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
Fix AntiAFK never resetting if it goes off the path
This commit is contained in:
parent
92fcaffae6
commit
bdb607ce94
@ -162,7 +162,8 @@ public final class AntiAfkHack extends Hack
|
|||||||
|
|
||||||
// check path
|
// check path
|
||||||
if(processor != null
|
if(processor != null
|
||||||
&& !pathFinder.isPathStillValid(processor.getIndex()))
|
&& !pathFinder.isPathStillValid(processor.getIndex())
|
||||||
|
|| processor.getTicksOffPath() > 20)
|
||||||
{
|
{
|
||||||
pathFinder = new RandomPathFinder(pathFinder);
|
pathFinder = new RandomPathFinder(pathFinder);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user