mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-28 03:01:31 +01:00
Fix collision between AABB and a dot (#8733)
This commit is contained in:
parent
ae7ed5a3b3
commit
c67f26d42a
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user