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 boolean lastAutoJump;
|
||||||
|
|
||||||
private void dispatchPathEvent(PathEvent event) {
|
private void dispatchPathEvent(PathEvent event) {
|
||||||
new Thread() {
|
new Thread(() -> Baritone.INSTANCE.getGameEventHandler().onPathEvent(event)).start();
|
||||||
public void run() {
|
|
||||||
Baritone.INSTANCE.getGameEventHandler().onPathEvent(event);
|
|
||||||
}
|
|
||||||
}.start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user