27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
--- a/net/minecraft/world/entity/projectile/EntityThrownTrident.java
|
|
+++ b/net/minecraft/world/entity/projectile/EntityThrownTrident.java
|
|
@@ -24,6 +24,10 @@
|
|
import net.minecraft.world.phys.MovingObjectPositionEntity;
|
|
import net.minecraft.world.phys.Vec3D;
|
|
|
|
+// CraftBukkit start
|
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
|
+// CraftBukkit end
|
|
+
|
|
public class EntityThrownTrident extends EntityArrow {
|
|
|
|
private static final DataWatcherObject<Byte> ID_LOYALTY = DataWatcher.<Byte>defineId(EntityThrownTrident.class, DataWatcherRegistry.BYTE);
|
|
@@ -77,10 +81,10 @@
|
|
}
|
|
}
|
|
|
|
- this.discard();
|
|
+ this.discard(EntityRemoveEvent.Cause.DROP); // CraftBukkit - add Bukkit remove cause
|
|
} else {
|
|
if (!(entity instanceof EntityHuman) && this.position().distanceTo(entity.getEyePosition()) < (double) entity.getBbWidth() + 1.0D) {
|
|
- this.discard();
|
|
+ this.discard(EntityRemoveEvent.Cause.DESPAWN); // CraftBukkit - add Bukkit remove cause
|
|
return;
|
|
}
|
|
|