Bukkit/CraftBukkit — pull request #1338 by nala3 (2014-02-12 00:18:10+00:00)
Title: Add check for crafting inventory when getting slot type. Fixes BUKKIT-3188

For a while now, there has been an issue where the last 4 slots of the
players inventory show the type of QUICKBAR when clicked, this is
incorrect. To fix this, a check has been added specially for player
inventories which checks and returns the correct slot types.