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 83fadad7da
commit 0e9c24e595
No known key found for this signature in database
GPG Key ID: 401ADFC9891FAAFE

View File

@ -10,7 +10,7 @@ the entity size.
BB is / 2 to calculate position.
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
index e0ab058bf947ea10b37eadf6122292e708bd3809..76fcde33416995ef46693b75dc4484e13d3daf1f 100644
index e0ab058bf947ea10b37eadf6122292e708bd3809..609f02a70ffc2e997f47a8ae5c07c0f1ced971fa 100644
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -2991,18 +2991,45 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
@ -19,8 +19,8 @@ index e0ab058bf947ea10b37eadf6122292e708bd3809..76fcde33416995ef46693b75dc4484e1
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;