allow goto blocks that end in s
This commit is contained in:
parent
0b892e05cb
commit
e354227635
@ -217,7 +217,7 @@ public class ExampleBaritoneControl extends Behavior {
|
|||||||
}
|
}
|
||||||
if (msg.toLowerCase().startsWith("goto")) {
|
if (msg.toLowerCase().startsWith("goto")) {
|
||||||
String waypointType = msg.toLowerCase().substring(4).trim();
|
String waypointType = msg.toLowerCase().substring(4).trim();
|
||||||
if (waypointType.endsWith("s")) {
|
if (waypointType.endsWith("s") && Waypoint.Tag.fromString(waypointType.substring(0, waypointType.length() - 1)) != null) {
|
||||||
// for example, "show deaths"
|
// for example, "show deaths"
|
||||||
waypointType = waypointType.substring(0, waypointType.length() - 1);
|
waypointType = waypointType.substring(0, waypointType.length() - 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user