Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit a08fb37

Browse files
Krakeniedgranny
authored andcommitted
MC-121706 - Fix mobs not looking up and down when strafing
1 parent 38ecff1 commit a08fb37

2 files changed

Lines changed: 14 additions & 22 deletions

File tree

patches/server/0260-MC-121706-Fix-mobs-not-looking-up-and-down-when-stra.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- a/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java
2+
+++ b/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java
3+
@@ -116,9 +_,9 @@
4+
}
5+
6+
this.mob.lookAt(target, 30.0F, 30.0F);
7+
- } else {
8+
+ } //else { // Purpur - MC-121706 - Fix mobs not looking up and down when strafing
9+
this.mob.getLookControl().setLookAt(target, 30.0F, 30.0F);
10+
- }
11+
+ //} // Purpur - MC-121706 - Fix mobs not looking up and down when strafing
12+
13+
if (this.mob.isUsingItem()) {
14+
if (!hasLineOfSight && this.seeTime < -60) {

0 commit comments

Comments
 (0)