mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-04 06:15:32 +02:00
Update action_manager.js
This commit is contained in:
parent
95b56f5301
commit
f14f86a518
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ export class ActionManager {
|
||||||
assert(actionLabel != null, 'actionLabel is required for new resume');
|
assert(actionLabel != null, 'actionLabel is required for new resume');
|
||||||
this.resume_name = actionLabel;
|
this.resume_name = actionLabel;
|
||||||
}
|
}
|
||||||
if (this.resume_func != null && (this.agent.isIdle() || new_resume) && (!this.agent.self_prompter.on || new_resume)) {
|
if (this.resume_func != null && (this.agent.isIdle() || new_resume) && (!this.agent.self_prompter.isActive() || new_resume)) {
|
||||||
this.currentActionLabel = this.resume_name;
|
this.currentActionLabel = this.resume_name;
|
||||||
let res = await this._executeAction(this.resume_name, this.resume_func, timeout);
|
let res = await this._executeAction(this.resume_name, this.resume_func, timeout);
|
||||||
this.currentActionLabel = '';
|
this.currentActionLabel = '';
|
||||||
|
@ -152,4 +152,4 @@ export class ActionManager {
|
||||||
}, TIMEOUT_MINS * 60 * 1000);
|
}, TIMEOUT_MINS * 60 * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue