From 988c541c8742da84b5dd1fe5a37a8b703b619fa8 Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Tue, 14 May 2024 22:57:14 -0500 Subject: [PATCH] kolby suggestion --- src/agent/commands/queries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/commands/queries.js b/src/agent/commands/queries.js index 0669d36..aa60b0b 100644 --- a/src/agent/commands/queries.js +++ b/src/agent/commands/queries.js @@ -58,10 +58,10 @@ export const queryList = [ if (inventory[item] && inventory[item] > 0) res += `\n- ${item}: ${inventory[item]}`; } - if (res == 'INVENTORY') { + if (res === 'INVENTORY') { res += ': none'; } - if (agent.bot.game.gameMode === 'creative') { + else if (agent.bot.game.gameMode === 'creative') { res += '\n(You have infinite items in creative mode)'; } return pad(res);