Fix log spam about Hanging entities bounding boxes

Nothing really "Broke" them, just a lot of log spam. This will clean that up
This commit is contained in:
Aikar 2020-05-22 02:04:00 -04:00
parent 0110ef1aa1
commit 4ca2ccc422

View File

@ -19,8 +19,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
maxZ = axisalignedbb.maxZ;
+ // Paper start - use saner max's for bounding box
+ boolean illegal = false;
+ double maxW = this.getWidth() * 2;
+ double maxH = this.getHeight();
+ double maxW = Math.max(1, this.getWidth() * 2);
+ double maxH = Math.max(1, this.getHeight());
double len = axisalignedbb.maxX - axisalignedbb.minX;
- if (len < 0) maxX = minX;
- if (len > 64) maxX = minX + 64.0;