Updated to Minecraft version 1.4

This commit is contained in:
Dinnerbone
2011-03-31 21:40:00 +01:00
parent 0635f7c1b8
commit 87c36febeb
84 changed files with 1024 additions and 793 deletions

View File

@@ -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;