Fix for patch targetting the wrong field to change for failed pathfinding penalty
This commit is contained in:
parent
ad03581fbe
commit
8ea90eb39e
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
+ if (--this.field_75445_i <= 0)
|
+ if (--this.field_75445_i <= 0)
|
||||||
+ {
|
+ {
|
||||||
+ this.field_75438_g = this.field_75441_b.func_70661_as().func_75494_a(entitylivingbase);
|
+ 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;
|
+ return this.field_75438_g != null;
|
||||||
+ }
|
+ }
|
||||||
+ else
|
+ else
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
+ if (this.canPenalize)
|
+ 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)
|
+ 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();
|
+ net.minecraft.pathfinding.PathPoint finalPathPoint = this.field_75441_b.func_70661_as().func_75505_d().func_75870_c();
|
||||||
|
|
Loading…
Reference in a new issue