forgot null check
This commit is contained in:
parent
2452a69089
commit
f51bcc8b89
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user