Skip to content

Commit 7674547

Browse files
authored
Fix MC-121706 (#1150)
1 parent 38313f7 commit 7674547

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Krakenied <Krakenied1@gmail.com>
3+
Date: Sun, 9 Oct 2022 01:50:39 +0200
4+
Subject: [PATCH] MC-121706 - Fix mobs not looking up and down when strafing
5+
6+
7+
diff --git a/src/main/java/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java b/src/main/java/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java
8+
index 6558b0d4bea99948fdc2b51751f3cfdc239d4b67..d85dabebbbbe213e791b8a3be3c6df05b959e40c 100644
9+
--- a/src/main/java/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java
10+
+++ b/src/main/java/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java
11+
@@ -111,9 +111,9 @@ public class RangedBowAttackGoal<T extends Monster & RangedAttackMob> extends Go
12+
13+
this.mob.getMoveControl().strafe(this.strafingBackwards ? -0.5F : 0.5F, this.strafingClockwise ? 0.5F : -0.5F);
14+
this.mob.lookAt(livingEntity, 30.0F, 30.0F);
15+
- } else {
16+
+ } //else { // Purpur - fix MC-121706
17+
this.mob.getLookControl().setLookAt(livingEntity, 30.0F, 30.0F);
18+
- }
19+
+ //} // Purpur
20+
21+
if (this.mob.isUsingItem()) {
22+
if (!bl && this.seeTime < -60) {

0 commit comments

Comments
 (0)