Closed IceTank closed 4 years ago
PlayerState in index.js checks in line 598: const boots = bot.inventory.items()[7] but items() returns all items in the inventory not items in the armor slot.
const boots = bot.inventory.items()[7]
I suggest changing the line to: const boots = bot.inventory.slots[8]
const boots = bot.inventory.slots[8]
Nice catch. Just made a PR (#20)
PlayerState in index.js checks in line 598:
const boots = bot.inventory.items()[7]
but items() returns all items in the inventory not items in the armor slot.I suggest changing the line to:
const boots = bot.inventory.slots[8]