3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 05:50:05 +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)) { if (super.a(entity)) {
CraftServer server = cserver; 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); server.getPluginManager().callEvent(lightning);
if (!lightning.isCancelled()) { if (!lightning.isCancelled()) {
this.server.serverConfigurationManager.a(entity.locX, entity.locY, entity.locZ, 512.0D, new Packet71Weather(entity)); this.server.serverConfigurationManager.a(entity.locX, entity.locY, entity.locZ, 512.0D, new Packet71Weather(entity));