mine many block types at once

This commit is contained in:
Leijurv
2018-09-04 08:50:42 -07:00
parent 5cfb270a32
commit 2452a69089
2 changed files with 11 additions and 7 deletions

View File

@@ -189,8 +189,8 @@ public class ExampleBaritoneControl extends Behavior {
}
if (msg.toLowerCase().startsWith("mine")) {
String blockType = msg.toLowerCase().substring(4).trim();
MineBehavior.INSTANCE.mine(blockType);
displayChatMessageRaw("Started mining blocks of type " + blockType);
MineBehavior.INSTANCE.mine(blockType.split(" "));
displayChatMessageRaw("Started mining blocks of type " + Arrays.toString(blockType.split(" ")));
event.cancel();
return;
}