mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Updated to Minecraft version 1.4
This commit is contained in:
@@ -28,7 +28,7 @@ public class EntityFireball extends Entity {
|
||||
|
||||
public EntityFireball(World world) {
|
||||
super(world);
|
||||
this.a(1.0F, 1.0F);
|
||||
this.b(1.0F, 1.0F);
|
||||
}
|
||||
|
||||
protected void a() {}
|
||||
@@ -36,7 +36,7 @@ public class EntityFireball extends Entity {
|
||||
public EntityFireball(World world, EntityLiving entityliving, double d0, double d1, double d2) {
|
||||
super(world);
|
||||
this.j = entityliving;
|
||||
this.a(1.0F, 1.0F);
|
||||
this.b(1.0F, 1.0F);
|
||||
this.c(entityliving.locX, entityliving.locY, entityliving.locZ, entityliving.yaw, entityliving.pitch);
|
||||
this.a(this.locX, this.locY, this.locZ);
|
||||
this.height = 0.0F;
|
||||
@@ -64,7 +64,7 @@ public class EntityFireball extends Entity {
|
||||
if (i == this.h) {
|
||||
++this.k;
|
||||
if (this.k == 1200) {
|
||||
this.C();
|
||||
this.D();
|
||||
}
|
||||
|
||||
return;
|
||||
@@ -155,7 +155,7 @@ public class EntityFireball extends Entity {
|
||||
if (!event.isCancelled()) {
|
||||
// give 'this' instead of (Entity) null so we know what causes the damage
|
||||
this.world.a(this, this.locX, this.locY, this.locZ, event.getRadius(), event.getFire());
|
||||
this.C();
|
||||
this.D();
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
@@ -230,9 +230,9 @@ public class EntityFireball extends Entity {
|
||||
}
|
||||
|
||||
public boolean a(Entity entity, int i) {
|
||||
this.R();
|
||||
this.W();
|
||||
if (entity != null) {
|
||||
Vec3D vec3d = entity.N();
|
||||
Vec3D vec3d = entity.S();
|
||||
|
||||
if (vec3d != null) {
|
||||
this.motX = vec3d.a;
|
||||
|
Reference in New Issue
Block a user