craftbukkit/src/main/java
Nate Mortensen bf4796d39e Fix creative ArrayIndexOutOfBoundsException. Fixes BUKKIT-4305
When a Player drops an ItemStack while in creative mode by placing it outside
of their inventory window, the slot number in the packet is -1. The check
that was added to avoid throwing InventoryCreativeEvent excessively didn't
take this into account, and would cause an ArrayIndexOutOfBoundsException to
be thrown when attempting to get the slot specified by the packet.

This change shorts the invocation of player.defaultContainer.getSlot(
packet107setcreativeslot.b) to only occur if the slot id is within the range
of the Inventory.  This prevents attempting to get the slot from a location
that is actually outside of the Inventory.
2013-06-04 15:58:36 -05:00
..
jline Use jansi's Windows support for terminal colors. 2012-05-23 15:32:42 -05:00
net/minecraft/server Fix creative ArrayIndexOutOfBoundsException. Fixes BUKKIT-4305 2013-06-04 15:58:36 -05:00
org/bukkit/craftbukkit Send block updates even when applyPhysics is false. Fixes BUKKIT-3971 2013-05-02 16:42:47 -06:00