Bukkit/CraftBukkit — pull request #1127 by t00thpick1 (2013-04-06 04:17:03+00:00)
Title: 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.