diff options
author | EvilSeph <evilseph@gmail.com> | 2011-10-04 10:04:45 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-10-04 10:04:45 -0400 |
commit | 73f419197ac63ced878af68e2674426d238104d8 (patch) | |
tree | f6060486f6b8af1eb040f31a0c69aace04161a2a /src | |
parent | 09801eeabf025aa66b096faeb0433c549b62582b (diff) | |
download | craftbukkit-73f419197ac63ced878af68e2674426d238104d8.tar craftbukkit-73f419197ac63ced878af68e2674426d238104d8.tar.gz craftbukkit-73f419197ac63ced878af68e2674426d238104d8.tar.lz craftbukkit-73f419197ac63ced878af68e2674426d238104d8.tar.xz craftbukkit-73f419197ac63ced878af68e2674426d238104d8.zip |
Fixed Skeletons not dropping experience.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/EntitySkeleton.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySkeleton.java b/src/main/java/net/minecraft/server/EntitySkeleton.java index e29d53ca..8ff71b6c 100644 --- a/src/main/java/net/minecraft/server/EntitySkeleton.java +++ b/src/main/java/net/minecraft/server/EntitySkeleton.java @@ -109,15 +109,7 @@ public class EntitySkeleton extends EntityMonster { loot.add(new org.bukkit.inventory.ItemStack(org.bukkit.Material.BONE, count)); } - org.bukkit.World bworld = this.world.getWorld(); - org.bukkit.entity.Entity entity = this.getBukkitEntity(); - - EntityDeathEvent event = new EntityDeathEvent(entity, loot); - this.world.getServer().getPluginManager().callEvent(event); - - for (org.bukkit.inventory.ItemStack stack: event.getDrops()) { - bworld.dropItemNaturally(entity.getLocation(), stack); - } + org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, loot); // CraftBukkit end } } |