diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/entity/projectile/EntityThrownTrident.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/entity/projectile/EntityThrownTrident.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/entity/projectile/EntityThrownTrident.patch b/patch-remap/og/net/minecraft/world/entity/projectile/EntityThrownTrident.patch new file mode 100644 index 0000000000..fac6f2e3ab --- /dev/null +++ b/patch-remap/og/net/minecraft/world/entity/projectile/EntityThrownTrident.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/world/entity/projectile/EntityThrownTrident.java ++++ b/net/minecraft/world/entity/projectile/EntityThrownTrident.java +@@ -153,7 +153,7 @@ + if (entitylightning != null) { + entitylightning.moveTo(Vec3D.atBottomCenterOf(blockposition)); + entitylightning.setCause(entity1 instanceof EntityPlayer ? (EntityPlayer) entity1 : null); +- this.level().addFreshEntity(entitylightning); ++ ((WorldServer) this.level()).strikeLightning(entitylightning, org.bukkit.event.weather.LightningStrikeEvent.Cause.TRIDENT); // CraftBukkit + soundeffect = SoundEffects.TRIDENT_THUNDER; + f1 = 5.0F; + } |