From b9cba93d338bc67e8b35ed10f7b574cafcfd5919 Mon Sep 17 00:00:00 2001 From: Brady Date: Mon, 24 Sep 2018 19:18:46 -0500 Subject: [PATCH] Jurv's absolutely autistic practices made me have to do this shit --- src/main/java/baritone/utils/ExampleBaritoneControl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index 66088cdb..bd1ac0f1 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -300,7 +300,9 @@ public class ExampleBaritoneControl extends Behavior implements Helper { String[] blockTypes = msg.substring(4).trim().split(" "); try { 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]); event.cancel(); return;