Fix collision between AABB and a dot (#8733)

This commit is contained in:
Lulu13022002 2023-06-09 04:17:32 +02:00
parent ae7ed5a3b3
commit c67f26d42a

View File

@ -1159,7 +1159,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ @Override
+ public double collide(Direction.Axis enumdirection_enumaxis, AABB axisalignedbb, double d0) {
+ if (CollisionUtil.isEmpty(this.aabb) || CollisionUtil.isEmpty(axisalignedbb)) {
+ if (CollisionUtil.isEmpty(this.aabb)) {
+ return d0;
+ }
+ switch (enumdirection_enumaxis.ordinal()) {