Bukkit/CraftBukkit — pull request #802 by h31ix (2012-06-22 05:18:35+00:00)
Title: Fix client crash on InventoryClickEvent cancel. Fixes BUKKIT-1841.

When an InventoryClickEvent is fired from a player in creative mode, setting it to cancelled or setting the result to DENY will cause the player's client to crash.

Since players are in creative, we don't need to reset the item into their inventory; it works just fine without the code I removed.

JIRA: https://bukkit.atlassian.net/browse/BUKKIT-1841