mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Fix players always looking south
This commit is contained in:
parent
3a612d64b7
commit
f2879fbfcc
@ -159,7 +159,6 @@ public class CitizensNavigator implements Navigator, Runnable {
|
||||
}
|
||||
if (updateStationaryStatus())
|
||||
return;
|
||||
|
||||
updatePathfindingRange();
|
||||
boolean finished = executing.update();
|
||||
if (localParams.lookAtFunction() != null) {
|
||||
|
@ -40,7 +40,7 @@ public class PlayerControllerLook {
|
||||
this.a.aO += 360F;
|
||||
}
|
||||
} else {
|
||||
this.a.aO = a(this.a.aO, this.a.aM, 10.0F);
|
||||
// this.a.aO = a(this.a.aO, this.a.aM, 10.0F);
|
||||
}
|
||||
float f3 = MathHelper.g(this.a.aO - this.a.aM);
|
||||
if (!this.a.getNavigation().n()) {
|
||||
|
@ -1426,7 +1426,8 @@ public class NMSImpl implements NMSBridge {
|
||||
}
|
||||
|
||||
private static final Set<EntityType> BAD_CONTROLLER_LOOK = EnumSet.of(EntityType.SILVERFISH, EntityType.ENDERMITE,
|
||||
EntityType.ENDER_DRAGON, EntityType.BAT);
|
||||
EntityType.ENDER_DRAGON, EntityType.BAT, EntityType.SLIME, EntityType.MAGMA_CUBE, EntityType.HORSE,
|
||||
EntityType.GHAST);
|
||||
|
||||
private static final Field CRAFT_BOSSBAR_HANDLE_FIELD = NMS.getField(CraftBossBar.class, "handle");
|
||||
private static final float DEFAULT_SPEED = 1F;
|
||||
|
@ -40,7 +40,7 @@ public class PlayerControllerLook {
|
||||
this.a.aP += 360F;
|
||||
}
|
||||
} else {
|
||||
this.a.aP = a(this.a.aP, this.a.aN, 10.0F);
|
||||
// this.a.aP = a(this.a.aP, this.a.aN, 10.0F);
|
||||
}
|
||||
float f3 = MathHelper.g(this.a.aP - this.a.aN);
|
||||
if (!this.a.getNavigation().n()) {
|
||||
|
Loading…
Reference in New Issue
Block a user