summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityThrownTrident.patch
blob: 8e2d44150bce78134d6430ed31d356f74545e125 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/EntityThrownTrident.java
+++ b/net/minecraft/server/EntityThrownTrident.java
@@ -122,7 +122,7 @@
                 EntityLightning entitylightning = new EntityLightning(this.world, (double) blockposition.getX() + 0.5D, (double) blockposition.getY(), (double) blockposition.getZ() + 0.5D, false);
 
                 entitylightning.d(entity1 instanceof EntityPlayer ? (EntityPlayer) entity1 : null);
-                this.world.strikeLightning(entitylightning);
+                ((WorldServer) this.world).strikeLightning(entitylightning, org.bukkit.event.weather.LightningStrikeEvent.Cause.TRIDENT); // CraftBukkit
                 soundeffect = SoundEffects.ITEM_TRIDENT_THUNDER;
                 f1 = 5.0F;
             }