aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/ThrowableProjectile.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/ThrowableProjectile.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/ThrowableProjectile.java.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/ThrowableProjectile.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/ThrowableProjectile.java.patch
new file mode 100644
index 0000000000..21a6b48b1b
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/ThrowableProjectile.java.patch
@@ -0,0 +1,13 @@
+--- a/net/minecraft/world/entity/projectile/ThrowableProjectile.java
++++ b/net/minecraft/world/entity/projectile/ThrowableProjectile.java
+@@ -60,8 +65,8 @@
+ }
+ }
+
+- if (hitResultOnMoveVector.getType() != HitResult.Type.MISS && !flag) {
+- this.onHit(hitResultOnMoveVector);
++ if (movingobjectposition.getType() != HitResult.EnumMovingObjectType.MISS && !flag) {
++ this.preOnHit(movingobjectposition); // CraftBukkit - projectile hit event
+ }
+
+ this.checkInsideBlocks();