summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java')
-rw-r--r--src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java b/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java
index 62891b56..e4e08175 100644
--- a/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java
+++ b/src/main/java/net/minecraft/server/PathfinderGoalMakeLove.java
@@ -17,7 +17,7 @@ public class PathfinderGoalMakeLove extends PathfinderGoal {
public boolean a() {
if (this.b.getAge() != 0) {
return false;
- } else if (this.b.aI().nextInt(500) != 0) {
+ } else if (this.b.aH().nextInt(500) != 0) {
return false;
} else {
this.a = this.d.villages.getClosestVillage(MathHelper.floor(this.b.locX), MathHelper.floor(this.b.locY), MathHelper.floor(this.b.locZ), 0);
@@ -56,13 +56,13 @@ public class PathfinderGoalMakeLove extends PathfinderGoal {
public void e() {
--this.e;
this.b.getControllerLook().a(this.c, 10.0F, 30.0F);
- if (this.b.e(this.c) > 2.25D) {
+ if (this.b.f(this.c) > 2.25D) {
this.b.getNavigation().a((Entity) this.c, 0.25D);
- } else if (this.e == 0 && this.c.bY()) {
+ } else if (this.e == 0 && this.c.ca()) {
this.g();
}
- if (this.b.aI().nextInt(35) == 0) {
+ if (this.b.aH().nextInt(35) == 0) {
this.d.broadcastEntityEffect(this.b, (byte) 12);
}
}