diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-07-02 14:05:31 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-07-02 21:27:31 -0400 |
commit | f7e17b68ded48ef599de9971476be86b37a8a575 (patch) | |
tree | 7b4533e70e8f80ace0eedbd24f810e96f572adb6 /src/main/java/net/minecraft/server/EntityArrow.java | |
parent | 22097a9962cb53ddf837e8b9861029cc825509b0 (diff) | |
download | craftbukkit-f7e17b68ded48ef599de9971476be86b37a8a575.tar craftbukkit-f7e17b68ded48ef599de9971476be86b37a8a575.tar.gz craftbukkit-f7e17b68ded48ef599de9971476be86b37a8a575.tar.lz craftbukkit-f7e17b68ded48ef599de9971476be86b37a8a575.tar.xz craftbukkit-f7e17b68ded48ef599de9971476be86b37a8a575.zip |
Fixed PlayerPickupItem event returning wrong amount picked up and added function to get the amount remaining on the ground.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityArrow.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityArrow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java index 5bd6cafb..f0702168 100644 --- a/src/main/java/net/minecraft/server/EntityArrow.java +++ b/src/main/java/net/minecraft/server/EntityArrow.java @@ -292,7 +292,7 @@ public class EntityArrow extends Entity { if (this.inGround && this.fromPlayer && this.shake <= 0 && entityhuman.inventory.canHold(itemstack) > 0) { net.minecraft.server.EntityItem item = new net.minecraft.server.EntityItem(this.world, this.locX, this.locY, this.locZ, itemstack); - PlayerPickupItemEvent event = new PlayerPickupItemEvent((org.bukkit.entity.Player) entityhuman.getBukkitEntity(), new org.bukkit.craftbukkit.entity.CraftItem(this.world.getServer(), item)); + PlayerPickupItemEvent event = new PlayerPickupItemEvent((org.bukkit.entity.Player) entityhuman.getBukkitEntity(), new org.bukkit.craftbukkit.entity.CraftItem(this.world.getServer(), item), 0); this.world.getServer().getPluginManager().callEvent(event); if (event.isCancelled()) { |