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

View File

@ -262,7 +262,7 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
file = coords[0] + ".schematic"; file = coords[0] + ".schematic";
origin = new BlockPos(Integer.parseInt(coords[1]), Integer.parseInt(coords[2]), Integer.parseInt(coords[3])); origin = new BlockPos(Integer.parseInt(coords[1]), Integer.parseInt(coords[2]), Integer.parseInt(coords[3]));
} catch (Exception ex) { } catch (Exception ex) {
file = msg.substring(5) + ".schematic"; file = msg.substring(5).trim() + ".schematic";
origin = ctx.playerFeet(); origin = ctx.playerFeet();
} }
logDirect("Loading '" + file + "' to build from origin " + origin); logDirect("Loading '" + file + "' to build from origin " + origin);