From 121f09caf076bfd8ff9bf0da4d2c68f9a12565c2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 4 Jan 2013 13:53:01 +1100 Subject: [PATCH] Might be worth catching other occurances of the event too. --- .../com/earth2me/essentials/commands/Commandkillall.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java b/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java index 243fa53ef..191a1268a 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandkillall.java @@ -111,7 +111,7 @@ public class Commandkillall extends EssentialsCommand continue; } } - if(entity instanceof Ocelot) + if (entity instanceof Ocelot) { if (((Ocelot)entity).isTamed()) { @@ -140,14 +140,14 @@ public class Commandkillall extends EssentialsCommand } else if (all) { - EntityDeathEvent event = new EntityDeathEvent((LivingEntity)entity, Collections.EMPTY_LIST); + EntityDeathEvent event = new EntityDeathEvent((LivingEntity)entity, new ArrayList(0)); ess.getServer().getPluginManager().callEvent(event); entity.remove(); numKills++; } else if (entityClass != null && entityClass.isAssignableFrom(entity.getClass())) { - EntityDeathEvent event = new EntityDeathEvent((LivingEntity)entity, Collections.EMPTY_LIST); + EntityDeathEvent event = new EntityDeathEvent((LivingEntity)entity, new ArrayList(0)); ess.getServer().getPluginManager().callEvent(event); entity.remove(); numKills++;