From 1e8bbbfbd59fce79d138043f423081732b010e44 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Tue, 23 Aug 2011 14:38:49 -0400 Subject: [PATCH] Fixed PlayerDropItem event cancelling. --- src/main/java/net/minecraft/server/EntityHuman.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java index d2fa3db1c2..a57fbf7714 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -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