From f51bcc8b8919709139670f541d96918676eb7a32 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 4 Sep 2018 08:51:58 -0700 Subject: [PATCH] forgot null check --- src/main/java/baritone/behavior/impl/MineBehavior.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/behavior/impl/MineBehavior.java b/src/main/java/baritone/behavior/impl/MineBehavior.java index f34aa480..1e1fdb08 100644 --- a/src/main/java/baritone/behavior/impl/MineBehavior.java +++ b/src/main/java/baritone/behavior/impl/MineBehavior.java @@ -80,7 +80,7 @@ public class MineBehavior extends Behavior { } public void mine(String... mining) { - this.mining = new ArrayList<>(Arrays.asList(mining)); + this.mining = mining == null ? null : new ArrayList<>(Arrays.asList(mining)); } public void cancel() {