reformat
This commit is contained in:
parent
df900c9e64
commit
4d127acb9a
@ -610,7 +610,7 @@ public class ExampleBaritoneControl implements Helper, AbstractGameEventListener
|
|||||||
}
|
}
|
||||||
if (msg.startsWith("delete")) {
|
if (msg.startsWith("delete")) {
|
||||||
String name = msg.substring(6).trim();
|
String name = msg.substring(6).trim();
|
||||||
IWaypoint waypoint = baritone.getWorldProvider().getCurrentWorld().getWaypoints().getAllWaypoints().stream().filter(w -> w.getTag() == IWaypoint.Tag.USER && w.getName().equalsIgnoreCase(name)).findFirst().orElse(null);
|
IWaypoint waypoint = baritone.getWorldProvider().getCurrentWorld().getWaypoints().getAllWaypoints().stream().filter(w -> w.getTag() == IWaypoint.Tag.USER && w.getName().equalsIgnoreCase(name)).findFirst().orElse(null);
|
||||||
if (waypoint == null) {
|
if (waypoint == null) {
|
||||||
logDirect("No user defined position under the name '" + name + "' found.");
|
logDirect("No user defined position under the name '" + name + "' found.");
|
||||||
return true;
|
return true;
|
||||||
@ -714,7 +714,6 @@ public class ExampleBaritoneControl implements Helper, AbstractGameEventListener
|
|||||||
goal = new GoalBlock(playerFeet);
|
goal = new GoalBlock(playerFeet);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
|
||||||
goal = new GoalYLevel(parseOrDefault(params[0], playerFeet.y));
|
goal = new GoalYLevel(parseOrDefault(params[0], playerFeet.y));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user