Add inventory type convert

This commit is contained in:
ReinforceZwei 2020-03-26 17:15:00 +08:00 committed by ORelio
parent e9613ad366
commit 13206614c4
5 changed files with 49 additions and 33 deletions

View file

@ -26,10 +26,11 @@ namespace MinecraftClient.Inventory
Title = title;
Items = items;
}
public Container(int id, Protocol.InventoryType type, string title)
public Container(int id, ContainerTypeOld type, string title)
{
ID = id;
Title = title;
Type = ConvertType.ToNew(type);
}
public Container(int id, int typeID, string title)
{