From 0ef08142fd178902b2d319cc92e930f4697a6ec2 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Thu, 7 Feb 2019 13:12:37 -0800 Subject: [PATCH] trim spaces from schematic name --- src/main/java/baritone/utils/ExampleBaritoneControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index b2114ad2..aeca0a0c 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -262,7 +262,7 @@ public class ExampleBaritoneControl extends Behavior implements Helper { file = coords[0] + ".schematic"; origin = new BlockPos(Integer.parseInt(coords[1]), Integer.parseInt(coords[2]), Integer.parseInt(coords[3])); } catch (Exception ex) { - file = msg.substring(5) + ".schematic"; + file = msg.substring(5).trim() + ".schematic"; origin = ctx.playerFeet(); } logDirect("Loading '" + file + "' to build from origin " + origin);