mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-10 18:38:08 +01:00
Fix incorrect navigation checking
This commit is contained in:
parent
64aa09bc94
commit
a04f054fb9
@ -1566,7 +1566,7 @@ public class NMSImpl implements NMSBridge {
|
||||
}
|
||||
|
||||
public static boolean isNavigationFinished(NavigationAbstract navigation) {
|
||||
return navigation.n();
|
||||
return navigation.m();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@ -1711,10 +1711,10 @@ public class NMSImpl implements NMSBridge {
|
||||
|
||||
private static final MethodHandle ADVANCEMENT_PLAYER_FIELD = NMS.getFinalSetter(EntityPlayer.class,
|
||||
"advancementDataPlayer");
|
||||
private static final Set<EntityType> BAD_CONTROLLER_LOOK = EnumSet.of(EntityType.POLAR_BEAR, EntityType.SILVERFISH,
|
||||
EntityType.SHULKER, EntityType.ENDERMITE, EntityType.ENDER_DRAGON, EntityType.BAT, EntityType.SLIME,
|
||||
EntityType.DOLPHIN, EntityType.MAGMA_CUBE, EntityType.HORSE, EntityType.GHAST, EntityType.SHULKER,
|
||||
EntityType.PHANTOM);
|
||||
private static final Set<EntityType> BAD_CONTROLLER_LOOK = EnumSet.of(EntityType.POLAR_BEAR, EntityType.BEE,
|
||||
EntityType.SILVERFISH, EntityType.SHULKER, EntityType.ENDERMITE, EntityType.ENDER_DRAGON, EntityType.BAT,
|
||||
EntityType.SLIME, EntityType.DOLPHIN, EntityType.MAGMA_CUBE, EntityType.HORSE, EntityType.GHAST,
|
||||
EntityType.SHULKER, EntityType.PHANTOM);
|
||||
private static final MethodHandle BEHAVIOR_MAP = NMS.getGetter(BehaviorController.class, "c");
|
||||
private static final MethodHandle BLOCK_POSITION_B_D = NMS.getMethodHandle(BlockPosition.PooledBlockPosition.class,
|
||||
"c", false, double.class, double.class, double.class);
|
||||
|
@ -31,10 +31,10 @@ public class PlayerControllerLook {
|
||||
this.a.yaw = this.a.aK;
|
||||
this.a.pitch = this.a(this.a.pitch, this.g(), this.c);
|
||||
} else {
|
||||
// this.a.K = this.a(this.a.aK, this.a.aI, 10.0F);
|
||||
// this.a.aK = this.a(this.a.aK, this.a.aI, 10.0F);
|
||||
}
|
||||
|
||||
if (!this.a.getNavigation().n()) {
|
||||
if (!this.a.getNavigation().m()) {
|
||||
this.a.aK = MathHelper.b(this.a.aK, this.a.aI, 75);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user