Update CraftBukkit to Minecraft 1.5

This commit is contained in:
Travis Watkins
2013-03-13 17:33:27 -05:00
parent ba6e4c38cf
commit 83d29e461c
246 changed files with 8499 additions and 6759 deletions

View File

@@ -10,7 +10,7 @@ public class PathfinderGoalBreakDoor extends PathfinderGoalDoorInteract {
}
public boolean a() {
return !super.a() ? false : (!this.a.world.getGameRules().getBoolean("mobGriefing") ? false : !this.e.a_(this.a.world, this.b, this.c, this.d));
return !super.a() ? false : (!this.a.world.getGameRules().getBoolean("mobGriefing") ? false : !this.e.b_(this.a.world, this.b, this.c, this.d));
}
public void c() {
@@ -21,17 +21,17 @@ public class PathfinderGoalBreakDoor extends PathfinderGoalDoorInteract {
public boolean b() {
double d0 = this.a.e((double) this.b, (double) this.c, (double) this.d);
return this.i <= 240 && !this.e.a_(this.a.world, this.b, this.c, this.d) && d0 < 4.0D;
return this.i <= 240 && !this.e.b_(this.a.world, this.b, this.c, this.d) && d0 < 4.0D;
}
public void d() {
super.d();
this.a.world.g(this.a.id, this.b, this.c, this.d, -1);
this.a.world.f(this.a.id, this.b, this.c, this.d, -1);
}
public void e() {
super.e();
if (this.a.aB().nextInt(20) == 0) {
if (this.a.aE().nextInt(20) == 0) {
this.a.world.triggerEffect(1010, this.b, this.c, this.d, 0);
}
@@ -39,7 +39,7 @@ public class PathfinderGoalBreakDoor extends PathfinderGoalDoorInteract {
int i = (int) ((float) this.i / 240.0F * 10.0F);
if (i != this.j) {
this.a.world.g(this.a.id, this.b, this.c, this.d, i);
this.a.world.f(this.a.id, this.b, this.c, this.d, i);
this.j = i;
}
@@ -51,7 +51,7 @@ public class PathfinderGoalBreakDoor extends PathfinderGoalDoorInteract {
}
// CraftBukkit end
this.a.world.setTypeId(this.b, this.c, this.d, 0);
this.a.world.setAir(this.b, this.c, this.d);
this.a.world.triggerEffect(1012, this.b, this.c, this.d, 0);
this.a.world.triggerEffect(2001, this.b, this.c, this.d, this.e.id);
}