diff --git a/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java index e28fdb520d..fd16e17274 100644 --- a/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/weather/LightningStrikeEvent.java @@ -2,6 +2,7 @@ package org.bukkit.event.weather; import org.bukkit.World; import org.bukkit.entity.Entity; +import org.bukkit.entity.LightningStrike; import org.bukkit.event.Cancellable; /** @@ -10,10 +11,10 @@ import org.bukkit.event.Cancellable; public class LightningStrikeEvent extends WeatherEvent implements Cancellable { private boolean canceled; - private Entity bolt; + private LightningStrike bolt; private World world; - public LightningStrikeEvent(World world, Entity bolt) { + public LightningStrikeEvent(World world, LightningStrike bolt) { super(Type.LIGHTNING_STRIKE, world); this.bolt = bolt; this.world = world; @@ -44,7 +45,7 @@ public class LightningStrikeEvent extends WeatherEvent implements Cancellable { * * @return lightning entity */ - public Entity getLightning() { + public LightningStrike getLightning() { return bolt; }