Clean-up some events to maintain general style

This commit is contained in:
Andrew Ardill
2011-12-05 19:13:10 +11:00
parent 8363eadcab
commit b1a3aa602a
12 changed files with 40 additions and 30 deletions

View File

@@ -299,7 +299,7 @@ public class CraftEventFactory {
}
public static EntityDeathEvent callEntityDeathEvent(EntityLiving victim, List<org.bukkit.inventory.ItemStack> drops) {
CraftLivingEntity entity = (CraftLivingEntity)victim.getBukkitEntity();
CraftLivingEntity entity = (CraftLivingEntity) victim.getBukkitEntity();
EntityDeathEvent event = new EntityDeathEvent(entity, drops, victim.getExpReward());
org.bukkit.World world = entity.getWorld();
Bukkit.getServer().getPluginManager().callEvent(event);