mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-10 10:28:12 +01:00
Don't update controller look during navigation
This commit is contained in:
parent
7cf12cdf78
commit
f7a4e78a8c
@ -162,7 +162,7 @@ public class CitizensNavigator implements Navigator, Runnable {
|
||||
updatePathfindingRange();
|
||||
boolean finished = executing.update();
|
||||
if (localParams.lookAtFunction() != null) {
|
||||
Util.faceLocation(npc.getEntity(), localParams.lookAtFunction().apply(this), true);
|
||||
Util.faceLocation(npc.getEntity(), localParams.lookAtFunction().apply(this), true, false);
|
||||
Entity entity = npc.getEntity().getPassenger();
|
||||
Location npcLoc = npc.getEntity().getLocation();
|
||||
while (entity != null) {
|
||||
|
@ -19,6 +19,8 @@ public class PlayerControllerLook {
|
||||
}
|
||||
|
||||
public void a() {
|
||||
if (!NMSImpl.isNavigationFinished(this.a.getNavigation()))
|
||||
return;
|
||||
this.a.pitch = 0.0F;
|
||||
if (this.d) {
|
||||
this.d = false;
|
||||
|
@ -19,6 +19,8 @@ public class PlayerControllerLook {
|
||||
}
|
||||
|
||||
public void a() {
|
||||
if (!NMSImpl.isNavigationFinished(this.a.getNavigation()))
|
||||
return;
|
||||
this.a.pitch = 0.0F;
|
||||
if (this.d) {
|
||||
this.d = false;
|
||||
|
Loading…
Reference in New Issue
Block a user