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 --- .../java/net/minecraft/server/PathfinderGoalEatTile.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main/java/net/minecraft/server/PathfinderGoalEatTile.java') diff --git a/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java b/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java index 1feced1a..3048b694 100644 --- a/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java +++ b/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java @@ -7,18 +7,18 @@ import org.bukkit.Material; public class PathfinderGoalEatTile extends PathfinderGoal { - private EntityLiving b; + private EntityInsentient b; private World c; - int a = 0; + int a; - public PathfinderGoalEatTile(EntityLiving entityliving) { - this.b = entityliving; - this.c = entityliving.world; + public PathfinderGoalEatTile(EntityInsentient entityinsentient) { + this.b = entityinsentient; + this.c = entityinsentient.world; this.a(7); } public boolean a() { - if (this.b.aE().nextInt(this.b.isBaby() ? 50 : 1000) != 0) { + if (this.b.aB().nextInt(this.b.isBaby() ? 50 : 1000) != 0) { return false; } else { int i = MathHelper.floor(this.b.locX); @@ -32,7 +32,7 @@ public class PathfinderGoalEatTile extends PathfinderGoal { public void c() { this.a = 40; this.c.broadcastEntityEffect(this.b, (byte) 10); - this.b.getNavigation().g(); + this.b.getNavigation().h(); } public void d() { -- cgit v1.2.3