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

View File

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