summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityProjectile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityProjectile.patch')
-rw-r--r--nms-patches/EntityProjectile.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/nms-patches/EntityProjectile.patch b/nms-patches/EntityProjectile.patch
index 460ea558..f5c27ca2 100644
--- a/nms-patches/EntityProjectile.patch
+++ b/nms-patches/EntityProjectile.patch
@@ -1,15 +1,15 @@
--- a/net/minecraft/server/EntityProjectile.java
+++ b/net/minecraft/server/EntityProjectile.java
-@@ -26,6 +26,7 @@
+@@ -34,6 +34,7 @@
public EntityProjectile(World world, EntityLiving entityliving) {
- super(world);
+ this(world, entityliving.locX, entityliving.locY + (double) entityliving.getHeadHeight() - 0.10000000149011612D, entityliving.locZ);
this.shooter = entityliving;
+ this.projectileSource = (org.bukkit.entity.LivingEntity) entityliving.getBukkitEntity(); // CraftBukkit
- this.setSize(0.25F, 0.25F);
- this.setPositionRotation(entityliving.locX, entityliving.locY + (double) entityliving.getHeadHeight(), entityliving.locZ, entityliving.yaw, entityliving.pitch);
- this.locX -= (double) (MathHelper.cos(this.yaw / 180.0F * 3.1415927F) * 0.16F);
-@@ -151,6 +152,11 @@
- this.d(movingobjectposition.a());
+ }
+
+ protected void i() {}
+@@ -161,6 +162,11 @@
+ this.e(movingobjectposition.a());
} else {
this.a(movingobjectposition);
+ // CraftBukkit start