mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 23:22:10 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user