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