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
1 changed files with 1 additions and 1 deletions

View File

@ -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() {