You cannot pick items up with a mostly full inventory even if they should fit

This issue affects

(Name of the command, the type of action performed, etc.) If you have a full inventory but one stack has less than 64, if you stand over a full stack of that item you will not pick any up.

How this differs from the expected behaviour

(What it should do) You should pick up enough items to fill the stack in your inventory to 64

How the issue manifests itself

(Steps to reproduce too, please!) Steps above