From 288e57d275a90b78ba32f5de61450a15a99cd988 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 4 Sep 2018 13:20:49 -0700 Subject: [PATCH] fix warning --- src/main/java/baritone/behavior/impl/MineBehavior.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/baritone/behavior/impl/MineBehavior.java b/src/main/java/baritone/behavior/impl/MineBehavior.java index 1e1fdb08..185cacd2 100644 --- a/src/main/java/baritone/behavior/impl/MineBehavior.java +++ b/src/main/java/baritone/behavior/impl/MineBehavior.java @@ -80,11 +80,11 @@ public class MineBehavior extends Behavior { } public void mine(String... mining) { - this.mining = mining == null ? null : new ArrayList<>(Arrays.asList(mining)); + this.mining = mining == null || mining.length == 0 ? null : new ArrayList<>(Arrays.asList(mining)); } public void cancel() { PathingBehavior.INSTANCE.cancel(); - mine(null); + mine(); } }