Replace anonymous thread in PathingBehavior with lambda body

This commit is contained in:
Brady 2018-08-24 13:54:01 -05:00
parent 5b60d01c11
commit cbec60472b
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 5 deletions

View File

@ -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