From b5a72d441bfa8f5bac73833a1784bf1e984bfaa4 Mon Sep 17 00:00:00 2001 From: boybook Date: Wed, 31 Jan 2024 15:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BD=9C=E8=A1=8C=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/nukkit/entity/EntityHuman.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/nukkit/entity/EntityHuman.java b/src/main/java/cn/nukkit/entity/EntityHuman.java index b70a9c064c3..1c087c28c11 100644 --- a/src/main/java/cn/nukkit/entity/EntityHuman.java +++ b/src/main/java/cn/nukkit/entity/EntityHuman.java @@ -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; }