Skip to content

Commit

Permalink
修复潜行高度问题
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Jan 31, 2024
1 parent 6e10fee commit b5a72d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/cn/nukkit/entity/EntityHuman.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public float getHeight() {
return 0.6f;
}
if (this.isSneaking()) {
return 1.49f;
if (this instanceof Player player && player.getProtocol() < 589) {
return 1.65f; // 旧版本应该还是老的高度
} else {
return 1.49f;
}
}
return 1.8f;
}
Expand Down

0 comments on commit b5a72d4

Please sign in to comment.