From c05cc33f7a70080429ac7c34614c47420d46e86f Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 6 May 2011 19:24:57 -0700 Subject: [PATCH] Changed LightningStrikeEvent to return a LightningStrike and not an Entity. --- src/main/java/net/minecraft/server/WorldServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java index 852c89d7b3..34ee124a11 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -109,7 +109,7 @@ public class WorldServer extends World implements BlockChangeDelegate { if (super.a(entity)) { CraftServer server = cserver; - LightningStrikeEvent lightning = new LightningStrikeEvent((org.bukkit.World) world, entity.getBukkitEntity()); + LightningStrikeEvent lightning = new LightningStrikeEvent((org.bukkit.World) world, (org.bukkit.entity.LightningStrike) entity.getBukkitEntity()); server.getPluginManager().callEvent(lightning); if (!lightning.isCancelled()) { this.server.serverConfigurationManager.a(entity.locX, entity.locY, entity.locZ, 512.0D, new Packet71Weather(entity));