better error message
This commit is contained in:
parent
2bb01fdd20
commit
0c4fd39845
@ -105,8 +105,12 @@ public class ExampleBaritoneControl extends Behavior {
|
|||||||
}
|
}
|
||||||
if (msg.equals("path")) {
|
if (msg.equals("path")) {
|
||||||
if (!PathingBehavior.INSTANCE.path()) {
|
if (!PathingBehavior.INSTANCE.path()) {
|
||||||
|
if (PathingBehavior.INSTANCE.getGoal() == null) {
|
||||||
|
displayChatMessageRaw("No goal.");
|
||||||
|
} else {
|
||||||
displayChatMessageRaw("Currently executing a path. Please cancel it first.");
|
displayChatMessageRaw("Currently executing a path. Please cancel it first.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
event.cancel();
|
event.cancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user