PrismarineJS / prismarine-physics

Provide the physics engine for minecraft entities
MIT License
35 stars 39 forks source link

Depth Strider Enchantment not working #19

Closed IceTank closed 4 years ago

IceTank commented 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.

I suggest changing the line to: const boots = bot.inventory.slots[8]

TheDudeFromCI commented 4 years ago

Nice catch. Just made a PR (#20)