Prevent the override updateTouchBoundingBox ignoring force.

This commit is contained in:
KermanIsPretty 2025-01-22 20:44:15 -06:00 committed by Kerman
parent b304dd53ae
commit c260849cc8

View File

@ -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);