From 8ea90eb39e4c80c44deb786a83054f1b389eb034 Mon Sep 17 00:00:00 2001 From: Corosauce Date: Sat, 19 Mar 2016 16:55:19 -0400 Subject: [PATCH] Fix for patch targetting the wrong field to change for failed pathfinding penalty --- .../net/minecraft/entity/ai/EntityAIAttackMelee.java.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/minecraft/net/minecraft/entity/ai/EntityAIAttackMelee.java.patch b/patches/minecraft/net/minecraft/entity/ai/EntityAIAttackMelee.java.patch index 851c2ecc1..2962e3ed5 100644 --- a/patches/minecraft/net/minecraft/entity/ai/EntityAIAttackMelee.java.patch +++ b/patches/minecraft/net/minecraft/entity/ai/EntityAIAttackMelee.java.patch @@ -18,7 +18,7 @@ + if (--this.field_75445_i <= 0) + { + this.field_75438_g = this.field_75441_b.func_70661_as().func_75494_a(entitylivingbase); -+ this.field_151497_i = 4 + this.field_75441_b.func_70681_au().nextInt(7); ++ this.field_75445_i = 4 + this.field_75441_b.func_70681_au().nextInt(7); + return this.field_75438_g != null; + } + else @@ -35,7 +35,7 @@ + if (this.canPenalize) + { -+ this.field_151497_i += failedPathFindingPenalty; ++ this.field_75445_i += failedPathFindingPenalty; + if (this.field_75441_b.func_70661_as().func_75505_d() != null) + { + net.minecraft.pathfinding.PathPoint finalPathPoint = this.field_75441_b.func_70661_as().func_75505_d().func_75870_c();