Fix an issue with player navigation

This commit is contained in:
fullwall 2018-07-23 18:09:34 +08:00
parent 7760164880
commit 4346ed0b19

View File

@ -254,7 +254,7 @@ public class PlayerNavigation extends NavigationAbstract {
localBlockPosition = localBlockPosition.down(); localBlockPosition = localBlockPosition.down();
} }
if (localBlockPosition.getY() > 0) { if (localBlockPosition.getY() > 0) {
return super.b(localBlockPosition.up()); return superb(localBlockPosition.up());
} }
while ((localBlockPosition.getY() < this.b.getHeight()) && (this.b.getType(localBlockPosition).isAir())) { while ((localBlockPosition.getY() < this.b.getHeight()) && (this.b.getType(localBlockPosition).isAir())) {
localBlockPosition = localBlockPosition.up(); localBlockPosition = localBlockPosition.up();
@ -267,9 +267,9 @@ public class PlayerNavigation extends NavigationAbstract {
&& (this.b.getType(localBlockPosition).getMaterial().isBuildable())) { && (this.b.getType(localBlockPosition).getMaterial().isBuildable())) {
localBlockPosition = localBlockPosition.up(); localBlockPosition = localBlockPosition.up();
} }
return super.b(localBlockPosition); return superb(localBlockPosition);
} }
return super.b(paramBlockPosition); return superb(paramBlockPosition);
} }
public void b(boolean paramBoolean) { public void b(boolean paramBoolean) {