fix warning

This commit is contained in:
Leijurv 2018-09-04 13:20:49 -07:00
parent b8ee7f5b96
commit 288e57d275
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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();
}
}