2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
|
|
Date: Sun, 26 Jul 2020 12:11:39 +0100
|
|
|
|
Subject: [PATCH] Add missing strikeLighting call to
|
|
|
|
World#spigot()#strikeLightningEffect
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2022-07-04 16:38:06 +02:00
|
|
|
index af22fa8aa8ddef4d592564b14d0114cc6f903fca..566636192c8c5858999c80c31b068aeb5bace1e6 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
|
2022-07-04 16:38:06 +02:00
|
|
|
@@ -2172,6 +2172,7 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
2021-06-11 14:02:28 +02:00
|
|
|
lightning.moveTo( loc.getX(), loc.getY(), loc.getZ() );
|
|
|
|
lightning.visualOnly = true;
|
|
|
|
lightning.isSilent = isSilent;
|
|
|
|
+ world.strikeLightning( lightning );
|
|
|
|
return (LightningStrike) lightning.getBukkitEntity();
|
|
|
|
}
|
|
|
|
};
|