Fixed PlayerDropItem event cancelling.

This commit is contained in:
EvilSeph 2011-08-23 14:38:49 -04:00
parent e4a2177281
commit 1e8bbbfbd5

View File

@ -294,10 +294,7 @@ public abstract class EntityHuman extends EntityLiving {
this.world.getServer().getPluginManager().callEvent(event);
if (event.isCancelled()) {
org.bukkit.inventory.ItemStack stack = drop.getItemStack();
stack.setAmount(1);
player.getInventory().addItem(stack);
player.getInventory().addItem(drop.getItemStack());
return;
}
// CraftBukkit end