mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 19:46:21 +01:00
Fixed Skeletons not dropping experience.
This commit is contained in:
parent
09801eeabf
commit
73f419197a
@ -109,15 +109,7 @@ public class EntitySkeleton extends EntityMonster {
|
|||||||
loot.add(new org.bukkit.inventory.ItemStack(org.bukkit.Material.BONE, count));
|
loot.add(new org.bukkit.inventory.ItemStack(org.bukkit.Material.BONE, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
org.bukkit.World bworld = this.world.getWorld();
|
org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, loot);
|
||||||
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);
|
|
||||||
}
|
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user