mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-11 09:51:35 +01:00
Prevent the override updateTouchBoundingBox ignoring force.
This commit is contained in:
parent
b304dd53ae
commit
c260849cc8
@ -643,6 +643,9 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev
|
|||||||
// Kind of annoying... they are changing isFastTouch to be true sometimes.
|
// Kind of annoying... they are changing isFastTouch to be true sometimes.
|
||||||
if (touchBoundingBox == null) {
|
if (touchBoundingBox == null) {
|
||||||
updateTouchBoundingBox(true);
|
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);
|
final BoundingBox.PointIterator pointIterator = touchBoundingBox.getBlocks(position);
|
||||||
|
Loading…
Reference in New Issue
Block a user