craftbukkit/nms-patches/net/minecraft/world/entity/projectile/EntityLlamaSpit.patch

12 lines
567 B
Diff
Raw Normal View History

--- a/net/minecraft/world/entity/projectile/EntityLlamaSpit.java
+++ b/net/minecraft/world/entity/projectile/EntityLlamaSpit.java
2023-03-15 03:30:00 +11:00
@@ -32,7 +32,7 @@
2021-11-22 09:00:00 +11:00
Vec3D vec3d = this.getDeltaMovement();
MovingObjectPosition movingobjectposition = ProjectileHelper.getHitResult(this, this::canHitEntity);
2021-11-22 09:00:00 +11:00
- this.onHit(movingobjectposition);
2021-06-11 15:00:00 +10:00
+ this.preOnHit(movingobjectposition); // CraftBukkit - projectile hit event
2021-11-22 09:00:00 +11:00
double d0 = this.getX() + vec3d.x;
double d1 = this.getY() + vec3d.y;
double d2 = this.getZ() + vec3d.z;