Changed LightningStrikeEvent to return a LightningStrike and not an Entity.

This commit is contained in:
sk89q 2011-05-06 19:24:57 -07:00
parent 99a7b91ef1
commit c05cc33f7a

View File

@ -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));