mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
Fix MC-121706 (#1150)
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Krakenied <Krakenied1@gmail.com>
|
||||||
|
Date: Sun, 9 Oct 2022 01:50:39 +0200
|
||||||
|
Subject: [PATCH] MC-121706 - Fix mobs not looking up and down when strafing
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
index 6558b0d4bea99948fdc2b51751f3cfdc239d4b67..d85dabebbbbe213e791b8a3be3c6df05b959e40c 100644
|
||||||
|
--- a/src/main/java/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java
|
||||||
|
+++ b/src/main/java/net/minecraft/world/entity/ai/goal/RangedBowAttackGoal.java
|
||||||
|
@@ -111,9 +111,9 @@ public class RangedBowAttackGoal<T extends Monster & RangedAttackMob> extends Go
|
||||||
|
|
||||||
|
this.mob.getMoveControl().strafe(this.strafingBackwards ? -0.5F : 0.5F, this.strafingClockwise ? 0.5F : -0.5F);
|
||||||
|
this.mob.lookAt(livingEntity, 30.0F, 30.0F);
|
||||||
|
- } else {
|
||||||
|
+ } //else { // Purpur - fix MC-121706
|
||||||
|
this.mob.getLookControl().setLookAt(livingEntity, 30.0F, 30.0F);
|
||||||
|
- }
|
||||||
|
+ //} // Purpur
|
||||||
|
|
||||||
|
if (this.mob.isUsingItem()) {
|
||||||
|
if (!bl && this.seeTime < -60) {
|
||||||
Reference in New Issue
Block a user