fixed turtle output text

This commit is contained in:
Djeeberjr 2023-07-31 16:42:17 +02:00
parent 98b8465436
commit 0c7280a2f5

View File

@ -31,9 +31,9 @@ class Turtle extends CLIAppBase {
});
}
private function checkAvailable(): Bool {
if (!kernel.turtle.Turtle.isTurtle()){
handle.write("No turtle attached");
private function checkAvailable():Bool {
if (!kernel.turtle.Turtle.isTurtle()) {
handle.write("This is not a turtle!");
return false;
}
return true;