Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Fixed cancelled lighting strikes dealing damage.
Dieser Commit ist enthalten in:
Ursprung
fb3e3ade90
Commit
cd12f057a7
@ -130,7 +130,6 @@ public class WorldServer extends World implements BlockChangeDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean a(Entity entity) {
|
public boolean a(Entity entity) {
|
||||||
if (super.a(entity)) {
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
LightningStrikeEvent lightning = new LightningStrikeEvent((org.bukkit.World) world, (org.bukkit.entity.LightningStrike) entity.getBukkitEntity());
|
LightningStrikeEvent lightning = new LightningStrikeEvent((org.bukkit.World) world, (org.bukkit.entity.LightningStrike) entity.getBukkitEntity());
|
||||||
this.cserver.getPluginManager().callEvent(lightning);
|
this.cserver.getPluginManager().callEvent(lightning);
|
||||||
@ -138,6 +137,8 @@ public class WorldServer extends World implements BlockChangeDelegate {
|
|||||||
if (lightning.isCancelled()) {
|
if (lightning.isCancelled()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (super.a(entity)) {
|
||||||
this.server.serverConfigurationManager.a(entity.locX, entity.locY, entity.locZ, 512.0D, this.dimension, new Packet71Weather(entity));
|
this.server.serverConfigurationManager.a(entity.locX, entity.locY, entity.locZ, 512.0D, this.dimension, new Packet71Weather(entity));
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
return true;
|
return true;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren