2021-05-09 22:50:09 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sat, 16 Jan 2021 14:30:12 -0500
|
2021-05-18 17:54:12 +02:00
|
|
|
Subject: [PATCH] Remove ProjectileHitEvent call when fireballs dead
|
2021-05-09 22:50:09 +02:00
|
|
|
|
2021-05-18 17:54:12 +02:00
|
|
|
The duplicate ProjectileHitEvent in EntityFireball was removed. The
|
|
|
|
event was always called before the duplicate call.
|
2021-05-09 22:50:09 +02:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/projectile/EntityFireball.java b/src/main/java/net/minecraft/world/entity/projectile/EntityFireball.java
|
2021-05-18 17:54:12 +02:00
|
|
|
index 9660dc2263c48a5818b767843658eeb9ee1748ea..ba3b52691db79c83d4482664b7a9615ab9be2761 100644
|
2021-05-09 22:50:09 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/projectile/EntityFireball.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/projectile/EntityFireball.java
|
|
|
|
@@ -87,7 +87,7 @@ public abstract class EntityFireball extends IProjectile {
|
|
|
|
|
|
|
|
// CraftBukkit start - Fire ProjectileHitEvent
|
|
|
|
if (this.dead) {
|
|
|
|
- CraftEventFactory.callProjectileHitEvent(this, movingobjectposition);
|
2021-05-18 17:54:12 +02:00
|
|
|
+ // CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // Paper - this is an undesired duplicate event
|
2021-05-09 22:50:09 +02:00
|
|
|
}
|
|
|
|
// CraftBukkit end
|
|
|
|
}
|