Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
Changed LightningStrikeEvent to return a LightningStrike and not an Entity.
Dieser Commit ist enthalten in:
Ursprung
99a7b91ef1
Commit
c05cc33f7a
@ -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));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren