diff options
author | Andrew Ardill <andrew.ardill@gmail.com> | 2011-12-08 10:30:20 +1100 |
---|---|---|
committer | Andrew Ardill <andrew.ardill@gmail.com> | 2011-12-08 10:30:20 +1100 |
commit | d75d1660b3ab6cb9557399552aceab4d26f43802 (patch) | |
tree | 6c298206fb451bc3f0e0816c7b578f4c105caf08 | |
parent | a25151306c004b058be9a5f4fdf5b9d3933eb182 (diff) | |
download | craftbukkit-d75d1660b3ab6cb9557399552aceab4d26f43802.tar craftbukkit-d75d1660b3ab6cb9557399552aceab4d26f43802.tar.gz craftbukkit-d75d1660b3ab6cb9557399552aceab4d26f43802.tar.lz craftbukkit-d75d1660b3ab6cb9557399552aceab4d26f43802.tar.xz craftbukkit-d75d1660b3ab6cb9557399552aceab4d26f43802.zip |
Make EntityEnderDragon call the ExplosionEventi
Rather than just creating the event and not worrying any further about it.
Thanks for the heads up snowleo!
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEnderDragon.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEnderDragon.java b/src/main/java/net/minecraft/server/EntityEnderDragon.java index a6537562..7a446706 100644 --- a/src/main/java/net/minecraft/server/EntityEnderDragon.java +++ b/src/main/java/net/minecraft/server/EntityEnderDragon.java @@ -489,6 +489,7 @@ public class EntityEnderDragon extends EntityComplex { // CraftBukkit start - set off an EntityExplodeEvent for the dragon exploding all these blocks org.bukkit.entity.Entity bukkitEntity = this.getBukkitEntity(); EntityExplodeEvent event = new EntityExplodeEvent(bukkitEntity, bukkitEntity.getLocation(), destroyedBlocks, 0F); + Bukkit.getPluginManager().callEvent(event); if (event.isCancelled()) { // this flag literally means 'Dragon hit something hard' (Obsidian, White Stone or Bedrock) and will cause the dragon to slow down. // We should consider adding an event extension for it, or perhaps returning true if the event is cancelled. |