diff options
author | EvilSeph <evilseph@gmail.com> | 2011-08-23 14:38:49 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-08-27 01:18:36 -0400 |
commit | 1e8bbbfbd59fce79d138043f423081732b010e44 (patch) | |
tree | a34bc120c2e6639241b9adf6da3a88d1aecc99fd /src/main/java | |
parent | e4a2177281f60b6d4f6a1cf0f3b65586a7ce3cf7 (diff) | |
download | craftbukkit-1e8bbbfbd59fce79d138043f423081732b010e44.tar craftbukkit-1e8bbbfbd59fce79d138043f423081732b010e44.tar.gz craftbukkit-1e8bbbfbd59fce79d138043f423081732b010e44.tar.lz craftbukkit-1e8bbbfbd59fce79d138043f423081732b010e44.tar.xz craftbukkit-1e8bbbfbd59fce79d138043f423081732b010e44.zip |
Fixed PlayerDropItem event cancelling.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityHuman.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java index d2fa3db1..a57fbf77 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 |