This commit is contained in:
Leijurv 2018-09-13 15:39:48 -07:00
parent 13628789c8
commit 33a0a2a7f9
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -238,7 +238,7 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
event.cancel();
return;
}
if (msg.toLowerCase().equals("save")) {
if (msg.toLowerCase().startsWith("save")) {
String name = msg.substring(4).trim();
WorldProvider.INSTANCE.getCurrentWorld().waypoints.addWaypoint(new Waypoint(name, Waypoint.Tag.HOME, playerFeet()));
logDirect("Saved user defined tag under name '" + name + "'. Say 'goto user' to set goal, say 'list user' to list.");