summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-04-15 09:16:43 -0500
committerfeildmaster <admin@feildmaster.com>2012-04-15 09:16:43 -0500
commit748ebae550002da7a0a6a611fcc737f57495f289 (patch)
tree2690b5f7da5c0b281bd3970b3a125511a8126a98 /src/main/java/org
parent6307efd2d141db611fef3dc362dcb10548129115 (diff)
downloadcraftbukkit-748ebae550002da7a0a6a611fcc737f57495f289.tar
craftbukkit-748ebae550002da7a0a6a611fcc737f57495f289.tar.gz
craftbukkit-748ebae550002da7a0a6a611fcc737f57495f289.tar.lz
craftbukkit-748ebae550002da7a0a6a611fcc737f57495f289.tar.xz
craftbukkit-748ebae550002da7a0a6a611fcc737f57495f289.zip
Properly call EntityDeathEvent for mobs. Fixes BUKKIT-1519
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
index c1bb8b36..75fdd3f6 100644
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
@@ -1,6 +1,7 @@
package org.bukkit.craftbukkit.event;
import java.net.InetAddress;
+import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@@ -287,6 +288,10 @@ public class CraftEventFactory {
return event;
}
+ public static EntityDeathEvent callEntityDeathEvent(EntityLiving victim) {
+ return callEntityDeathEvent(victim, new ArrayList<org.bukkit.inventory.ItemStack>(0));
+ }
+
public static EntityDeathEvent callEntityDeathEvent(EntityLiving victim, List<org.bukkit.inventory.ItemStack> drops) {
CraftLivingEntity entity = (CraftLivingEntity) victim.getBukkitEntity();
EntityDeathEvent event = new EntityDeathEvent(entity, drops, victim.getExpReward());