start implement

This commit is contained in:
ReinforceZwei 2020-05-24 10:33:09 +08:00 committed by ORelio
parent d6022d1ee9
commit 902527502e
4 changed files with 17 additions and 1 deletions

View file

@ -1362,6 +1362,13 @@ namespace MinecraftClient.Protocol.Handlers
case WindowActionType.LeftClick: button = 0; break;
case WindowActionType.RightClick: button = 1; break;
case WindowActionType.MiddleClick: button = 2; mode = 3; break;
case WindowActionType.DropItem:
button = 0;
mode = 4;
item = new Item(-1, 0, null);
Container inventory = handler.GetInventory(0);
inventory.Items[slotId].Count--; // server won't update us after dropped
break;
}
List<byte> packet = new List<byte>();