3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Changed LightningStrikeEvent to return a LightningStrike and not an Entity.

Dieser Commit ist enthalten in:
sk89q 2011-05-06 19:24:57 -07:00
Ursprung 99a7b91ef1
Commit c05cc33f7a

Datei anzeigen

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