@@ -22,8 +22,8 @@
|
||||
this(entitytypes, world);
|
||||
this.shooter = entityliving;
|
||||
+ this.projectileSource = (org.bukkit.entity.LivingEntity) entityliving.getBukkitEntity(); // CraftBukkit
|
||||
this.setPositionRotation(entityliving.locX, entityliving.locY, entityliving.locZ, entityliving.yaw, entityliving.pitch);
|
||||
this.setPosition(this.locX, this.locY, this.locZ);
|
||||
this.setPositionRotation(entityliving.locX(), entityliving.locY(), entityliving.locZ(), entityliving.yaw, entityliving.pitch);
|
||||
this.Z();
|
||||
this.setMot(Vec3D.a);
|
||||
+ // CraftBukkit start - Added setDirection method
|
||||
+ this.setDirection(d0, d1, d2);
|
||||
@@ -47,7 +47,7 @@
|
||||
}
|
||||
|
||||
Vec3D vec3d = this.getMot();
|
||||
@@ -147,6 +164,11 @@
|
||||
@@ -157,6 +174,11 @@
|
||||
} else {
|
||||
this.velocityChanged();
|
||||
if (damagesource.getEntity() != null) {
|
||||
@@ -59,7 +59,7 @@
|
||||
Vec3D vec3d = damagesource.getEntity().getLookDirection();
|
||||
|
||||
this.setMot(vec3d);
|
||||
@@ -155,6 +177,7 @@
|
||||
@@ -165,6 +187,7 @@
|
||||
this.dirZ = vec3d.z * 0.1D;
|
||||
if (damagesource.getEntity() instanceof EntityLiving) {
|
||||
this.shooter = (EntityLiving) damagesource.getEntity();
|
||||
|
||||
Reference in New Issue
Block a user