You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
894 B
26 lines
894 B
--- ../src-base/minecraft/net/minecraft/entity/ai/EntityAIPanic.java |
|
+++ ../src-work/minecraft/net/minecraft/entity/ai/EntityAIPanic.java |
|
@@ -3,6 +3,8 @@ |
|
import net.minecraft.entity.EntityCreature; |
|
import net.minecraft.util.Vec3; |
|
|
|
+import net.minecraft.entity.EntityLivingBase; // CraftBukkit |
|
+ |
|
public class EntityAIPanic extends EntityAIBase |
|
{ |
|
private EntityCreature theEntityCreature; |
|
@@ -50,6 +52,14 @@ |
|
|
|
public boolean continueExecuting() |
|
{ |
|
+ // CraftBukkit start - introduce a temporary timeout hack until this is fixed properly |
|
+ if ((this.theEntityCreature.ticksExisted - this.theEntityCreature.func_142015_aE()) > 100) |
|
+ { |
|
+ this.theEntityCreature.setRevengeTarget((EntityLivingBase) null); |
|
+ return false; |
|
+ } |
|
+ |
|
+ // CraftBukkit end |
|
return !this.theEntityCreature.getNavigator().noPath(); |
|
} |
|
}
|
|
|