Update CraftBukkit to Minecraft 1.7.2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import net.minecraft.util.org.apache.commons.lang3.StringUtils;
|
||||
|
||||
// CraftBukkit start
|
||||
import org.bukkit.craftbukkit.entity.CraftEntity;
|
||||
@@ -47,7 +47,7 @@ public abstract class PathfinderGoalTarget extends PathfinderGoal {
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
return !(entityliving instanceof EntityPlayer) || !((EntityPlayer) entityliving).playerInteractManager.isCreative();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,7 +144,7 @@ public abstract class PathfinderGoalTarget extends PathfinderGoal {
|
||||
}
|
||||
|
||||
private boolean a(EntityLiving entityliving) {
|
||||
this.e = 10 + this.c.aD().nextInt(5);
|
||||
this.e = 10 + this.c.aI().nextInt(5);
|
||||
PathEntity pathentity = this.c.getNavigation().a(entityliving);
|
||||
|
||||
if (pathentity == null) {
|
||||
|
||||
Reference in New Issue
Block a user