Skip to content

Commit 08f548f

Browse files
committed
Bug fix data not loaded + Stop walking when turned off
1 parent d6f127b commit 08f548f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/com/hanprogramer/androids/entities/android/AndroidEntity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ public void setOn(boolean value) {
429429
this.getNavigation().stop();
430430

431431
if (value && hasChip) {
432+
updateProperties();
432433
// Set the properties
433434
for (var p : _properties) {
434435
// System.out.printf("Set Properties %s:%s %n", p.id, p.value);
@@ -482,6 +483,8 @@ public void setOn(boolean value) {
482483
} catch (Exception e) {
483484
System.out.println(e); //TODO: Log this somewhere?
484485
}
486+
} else {
487+
getNavigation().stop();
485488
}
486489
isWaitingTick = false;
487490
}

0 commit comments

Comments
 (0)