Skip to content

Commit

Permalink
The player's jump height is 0.75, not 1. (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR authored and wu-vincent committed Oct 10, 2016
1 parent cd25291 commit 1ea136c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/cn/nukkit/entity/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ public void fall(float fallDistance) {
this.attack(ev);
}

if (fallDistance > 1) {
if (fallDistance > 0.75) {
Block down = this.level.getBlock(this.temporalVector.setComponents(getFloorX(), getFloorY() - 1, getFloorZ()));

if (down.getId() == Item.FARMLAND) {
Expand Down

0 comments on commit 1ea136c

Please sign in to comment.