Inventory is cleared only when a task is present

This commit is contained in:
Ayush Maniar 2025-04-19 18:44:19 -07:00
parent afded138d0
commit 6002c6fb9c

View file

@ -103,7 +103,9 @@ export class Agent {
this.startEvents();
if (!load_mem) {
this.task.initBotTask();
if (task_path !== null) {
this.task.initBotTask();
}
}
await new Promise((resolve) => setTimeout(resolve, 10000));