From 956e212e395d3b753068fa7474e9821ac30f7c31 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Sun, 5 Aug 2018 19:26:31 -0400 Subject: [PATCH] Change LookBehavior target initialization location --- src/main/java/baritone/bot/behavior/impl/LookBehavior.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/baritone/bot/behavior/impl/LookBehavior.java b/src/main/java/baritone/bot/behavior/impl/LookBehavior.java index 89733c95..ec0c97b8 100644 --- a/src/main/java/baritone/bot/behavior/impl/LookBehavior.java +++ b/src/main/java/baritone/bot/behavior/impl/LookBehavior.java @@ -12,7 +12,7 @@ public class LookBehavior extends Behavior { public static final LookBehavior INSTANCE = new LookBehavior(); public LookBehavior() { - + target = Optional.empty(); } /** @@ -21,7 +21,7 @@ public class LookBehavior extends Behavior { * getFirst() -> yaw * getSecond() -> pitch */ - private Optional> target = Optional.empty(); + private Optional> target; public void updateTarget(Tuple target) { this.target = Optional.of(target);