From d75d1660b3ab6cb9557399552aceab4d26f43802 Mon Sep 17 00:00:00 2001 From: Andrew Ardill Date: Thu, 8 Dec 2011 10:30:20 +1100 Subject: [PATCH] Make EntityEnderDragon call the ExplosionEventi Rather than just creating the event and not worrying any further about it. Thanks for the heads up snowleo! --- src/main/java/net/minecraft/server/EntityEnderDragon.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/EntityEnderDragon.java b/src/main/java/net/minecraft/server/EntityEnderDragon.java index a653756274..7a44670699 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.