3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 15:20:11 +01:00
Paper/nms-patches/EntityProjectile.patch

15 Zeilen
546 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/EntityProjectile.java
+++ b/net/minecraft/server/EntityProjectile.java
2020-06-25 02:00:00 +02:00
@@ -42,6 +42,11 @@
2016-02-29 22:32:46 +01:00
2020-06-25 02:00:00 +02:00
if (movingobjectposition.getType() != MovingObjectPosition.EnumMovingObjectType.MISS && !flag) {
this.a(movingobjectposition);
+ // CraftBukkit start
+ if (this.dead) {
+ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition);
+ }
+ // CraftBukkit end
}
2020-06-25 02:00:00 +02:00
Vec3D vec3d = this.getMot();