Bukkit/CraftBukkit — pull request #1372 by jetkiwi (2014-05-06 10:12:08+00:00)
Title: [C] Override b(EntityHuman entityhuman, int i). Fixes BUKKIT-1929

**The Issue**

CraftContainer does not override b(EntityHuman entityhuman, int i). Without overriding this method, "shift copying" will not work properly, and can cause a stack overflow and crash the server.

See also [Bukkit/Bukkit#1929](https://bukkit.atlassian.net/browse/BUKKIT-1929) for detailed information.

**Justification for this PR**

This PR fixes this issue by properly overriding b(EntityHuman entityhuman, int i) and switching the process according to the inventory type.

**PR Breakdown**

The following changes are made:

Override b(EntityHuman entityhuman, int i) in CraftContainer and copied code from relevant classes.
SlotPotionBottle added from mc-dev and changed to public

**JIRA Ticket**

BUKKIT-1929 - [https://bukkit.atlassian.net/browse/BUKKIT-1929](https://bukkit.atlassian.net/browse/BUKKIT-1929)