Add 1.21.2 & 1.21.0 support
This commit is contained in:
@@ -40,6 +40,8 @@ func (pk *InventoryContent) Marshal(io protocol.IO) {
|
||||
if proto.IsProtoGTE(io, proto.ID748) {
|
||||
io.ItemInstance(&pk.StorageItem)
|
||||
} else {
|
||||
io.Varuint32(&pk.DynamicContainerSize)
|
||||
if proto.IsProtoGTE(io, proto.ID712) {
|
||||
io.Varuint32(&pk.DynamicContainerSize)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user