forgot null check

This commit is contained in:
Leijurv 2018-09-04 08:51:58 -07:00
parent 2452a69089
commit f51bcc8b89
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -80,7 +80,7 @@ public class MineBehavior extends Behavior {
} }
public void mine(String... mining) { 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() { public void cancel() {