trim spaces from schematic name

This commit is contained in:
Leijurv 2019-02-07 13:12:37 -08:00
parent 8694d926c4
commit 0ef08142fd
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 1 additions and 1 deletions

View File

@ -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);