From c260849cc8ba64aae9de877de7303f539eec5fb1 Mon Sep 17 00:00:00 2001 From: KermanIsPretty <46640204+KermanIsPretty@users.noreply.github.com> Date: Wed, 22 Jan 2025 20:44:15 -0600 Subject: [PATCH] Prevent the override updateTouchBoundingBox ignoring force. --- src/main/java/net/minestom/server/entity/Entity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index 2e1964a9b..4d7694d87 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -643,6 +643,9 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev // Kind of annoying... they are changing isFastTouch to be true sometimes. if (touchBoundingBox == null) { updateTouchBoundingBox(true); + + // Evil is among us. + Check.notNull(this.touchBoundingBox, "Touch bounding box is null after force update"); } final BoundingBox.PointIterator pointIterator = touchBoundingBox.getBlocks(position);