PrismarineJS / mineflayer-collectblock

A simple utility plugin for Mineflayer that add a higher level API for collecting blocks.
MIT License
38 stars 23 forks source link

openChest() is deprecated, please update to openContainer() #75

Open TheAverageCanadian opened 2 years ago

TheAverageCanadian commented 2 years ago

https://github.com/PrismarineJS/mineflayer-collectblock/blob/aaa034d34a570b10518526de29520fe46b932c30/src/Inventory.ts#L120

The Problem & Possible Solution As the title says, the Mineflayer method openChest() is deprecated and buggy. There are several Issues posted on the main Mineflayer git regarding the openChest() method not working properly, and it has since been replaced with a new method.

The UI interaction has been overhauled and it now uses openContainer(). The above instance of openChest() and other related code that deals with depositing into chests should be changed over to the newer method.