From cef824bc16fb671cdad2fe6b670b018b055effb5 Mon Sep 17 00:00:00 2001 From: iam Date: Thu, 5 May 2022 07:42:07 -0400 Subject: [PATCH] Fix expanded bounding box (#1020) --- src/main/java/net/minestom/server/entity/LivingEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/entity/LivingEntity.java b/src/main/java/net/minestom/server/entity/LivingEntity.java index 834cfe530..ce225c8d7 100644 --- a/src/main/java/net/minestom/server/entity/LivingEntity.java +++ b/src/main/java/net/minestom/server/entity/LivingEntity.java @@ -524,7 +524,7 @@ public class LivingEntity extends Entity implements EquipmentHandler { @Override public void setBoundingBox(BoundingBox boundingBox) { super.setBoundingBox(boundingBox); - this.expandedBoundingBox = getBoundingBox().expand(1, 0.5f, 1); + this.expandedBoundingBox = boundingBox.expand(1, 0.5f, 1); } /**