Standardize which max stack size is used in method

Currently, when using the Inventory.addItem() method, it gets the max stack size to use inconsistently, either using getMaxStackSize() from the item or getMaxItemStack() from the inventory.  This PR would standardize it to always use the smaller of the two.