Add Mode switching command for AutoDrop (#1293)

* Add new command for AutoDrop
* Minor imporvement for AutoDrop
* Fix inventory update event passed a non-exist inventory ID
* Minor improvement for AutoDrop
This commit is contained in:
ReinforceZwei 2020-10-26 00:43:05 +08:00 committed by GitHub
parent 9169036893
commit ec9f999857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 3 deletions

View file

@ -1770,6 +1770,7 @@ namespace MinecraftClient
// Handle cursor item
if (inventoryID == 255 && slotID == -1)
{
inventoryID = 0; // Prevent key not found for some bots relied to this event
if (inventories.ContainsKey(0))
{
if (item != null)