Replace anonymous thread in PathingBehavior with lambda body
This commit is contained in:
parent
5b60d01c11
commit
cbec60472b
@ -61,11 +61,7 @@ public class PathingBehavior extends Behavior {
|
||||
private boolean lastAutoJump;
|
||||
|
||||
private void dispatchPathEvent(PathEvent event) {
|
||||
new Thread() {
|
||||
public void run() {
|
||||
Baritone.INSTANCE.getGameEventHandler().onPathEvent(event);
|
||||
}
|
||||
}.start();
|
||||
new Thread(() -> Baritone.INSTANCE.getGameEventHandler().onPathEvent(event)).start();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user