mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 13:36:16 +01:00
Changed LightningStrikeEvent to return a LightningStrike and not an Entity.
This commit is contained in:
parent
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));
|
||||
|
Loading…
Reference in New Issue
Block a user