summaryrefslogtreecommitdiffstats
path: root/nms-patches/CommandSummon.patch
blob: 780b945a98a5fc4e49fdb59c69cdef003b8c5393 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/CommandSummon.java
+++ b/net/minecraft/server/CommandSummon.java
@@ -32,7 +32,7 @@
         if (EntityTypes.getName(EntityTypes.LIGHTNING_BOLT).equals(minecraftkey)) {
             EntityLightning entitylightning = new EntityLightning(commandlistenerwrapper.getWorld(), vec3d.x, vec3d.y, vec3d.z, false);
 
-            commandlistenerwrapper.getWorld().strikeLightning(entitylightning);
+            commandlistenerwrapper.getWorld().strikeLightning(entitylightning, org.bukkit.event.weather.LightningStrikeEvent.Cause.COMMAND); // CraftBukkit
             commandlistenerwrapper.sendMessage(new ChatMessage("commands.summon.success", new Object[] { entitylightning.getScoreboardDisplayName()}), true);
             return 1;
         } else {