PrismarineJS / mineflayer-collectblock

A simple utility plugin for Mineflayer that add a higher level API for collecting blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emptyInventory doesn't remove attempted chests from search criteria

SeanMcCord opened this issue · comments

This array is never mutated and therefore each call to getClosestChest returns the same chest.

The array is edited within the getClosestChest() function.

chestLocations.splice(chestLocations.indexOf(chest), 1)