Jurv's absolutely autistic practices made me have to do this shit

This commit is contained in:
Brady 2018-09-24 19:18:46 -05:00
parent 34e5811613
commit b9cba93d33
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -300,7 +300,9 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
String[] blockTypes = msg.substring(4).trim().split(" "); String[] blockTypes = msg.substring(4).trim().split(" ");
try { try {
int quantity = Integer.parseInt(blockTypes[1]); int quantity = Integer.parseInt(blockTypes[1]);
MineBehavior.INSTANCE.mine(quantity, blockTypes[0]); Block block = ChunkPacker.stringToBlock(blockTypes[0]);
Objects.requireNonNull(block);
MineBehavior.INSTANCE.mine(quantity, block);
logDirect("Will mine " + quantity + " " + blockTypes[0]); logDirect("Will mine " + quantity + " " + blockTypes[0]);
event.cancel(); event.cancel();
return; return;