From 6c09066e224ac85b8a6464eaf8f53edfeb4beda4 Mon Sep 17 00:00:00 2001 From: Nate Mortensen Date: Mon, 1 Jul 2013 06:03:00 -0500 Subject: Update CraftBukkit to 1.6.1 --- .../net/minecraft/server/PathfinderGoalBreed.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/main/java/net/minecraft/server/PathfinderGoalBreed.java') diff --git a/src/main/java/net/minecraft/server/PathfinderGoalBreed.java b/src/main/java/net/minecraft/server/PathfinderGoalBreed.java index ca544f36..a2560043 100644 --- a/src/main/java/net/minecraft/server/PathfinderGoalBreed.java +++ b/src/main/java/net/minecraft/server/PathfinderGoalBreed.java @@ -9,18 +9,18 @@ public class PathfinderGoalBreed extends PathfinderGoal { private EntityAnimal d; World a; private EntityAnimal e; - int b = 0; - float c; + int b; + double c; - public PathfinderGoalBreed(EntityAnimal entityanimal, float f) { + public PathfinderGoalBreed(EntityAnimal entityanimal, double d0) { this.d = entityanimal; this.a = entityanimal.world; - this.c = f; + this.c = d0; this.a(3); } public boolean a() { - if (!this.d.r()) { + if (!this.d.bU()) { return false; } else { this.e = this.f(); @@ -29,7 +29,7 @@ public class PathfinderGoalBreed extends PathfinderGoal { } public boolean b() { - return this.e.isAlive() && this.e.r() && this.b < 60; + return this.e.isAlive() && this.e.bU() && this.b < 60; } public void d() { @@ -38,8 +38,8 @@ public class PathfinderGoalBreed extends PathfinderGoal { } public void e() { - this.d.getControllerLook().a(this.e, 10.0F, (float) this.d.bs()); - this.d.getNavigation().a((EntityLiving) this.e, this.c); + this.d.getControllerLook().a(this.e, 10.0F, (float) this.d.bl()); + this.d.getNavigation().a((Entity) this.e, this.c); ++this.b; if (this.b >= 60 && this.d.e(this.e) < 9.0D) { this.g(); @@ -71,12 +71,12 @@ public class PathfinderGoalBreed extends PathfinderGoal { if (entityageable != null) { this.d.setAge(6000); this.e.setAge(6000); - this.d.s(); - this.e.s(); + this.d.bV(); + this.e.bV(); entityageable.setAge(-24000); entityageable.setPositionRotation(this.d.locX, this.d.locY, this.d.locZ, 0.0F, 0.0F); this.a.addEntity(entityageable, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING); // CraftBukkit - added SpawnReason - Random random = this.d.aE(); + Random random = this.d.aB(); for (int i = 0; i < 7; ++i) { double d0 = random.nextGaussian() * 0.02D; -- cgit v1.2.3