From 0e9c24e5954464793d5884921578eb4c56089a47 Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 22 May 2020 02:04:00 -0400 Subject: [PATCH] Fix log spam about Hanging entities bounding boxes Nothing really "Broke" them, just a lot of log spam. This will clean that up --- .../0529-Use-saner-Entity-bounding-box-limits.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Spigot-Server-Patches/0529-Use-saner-Entity-bounding-box-limits.patch b/Spigot-Server-Patches/0529-Use-saner-Entity-bounding-box-limits.patch index 36e82471f2..f1bbabf7a9 100644 --- a/Spigot-Server-Patches/0529-Use-saner-Entity-bounding-box-limits.patch +++ b/Spigot-Server-Patches/0529-Use-saner-Entity-bounding-box-limits.patch @@ -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;