Fix players always looking south

This commit is contained in:
fullwall 2016-11-30 14:17:01 +08:00
parent 3a612d64b7
commit f2879fbfcc
4 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,6 @@ public class CitizensNavigator implements Navigator, Runnable {
}
if (updateStationaryStatus())
return;
updatePathfindingRange();
boolean finished = executing.update();
if (localParams.lookAtFunction() != null) {

View File

@ -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()) {

View File

@ -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;

View File

@ -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()) {