geforkt von Mirrors/Paper
Fix log spam about Hanging entities bounding boxes
Nothing really "Broke" them, just a lot of log spam. This will clean that up
Dieser Commit ist enthalten in:
Ursprung
83fadad7da
Commit
0e9c24e595
@ -10,7 +10,7 @@ the entity size.
|
|||||||
BB is / 2 to calculate position.
|
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
|
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
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
||||||
+++ b/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
|
@@ -2991,18 +2991,45 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||||
@ -19,8 +19,8 @@ index e0ab058bf947ea10b37eadf6122292e708bd3809..76fcde33416995ef46693b75dc4484e1
|
|||||||
maxZ = axisalignedbb.maxZ;
|
maxZ = axisalignedbb.maxZ;
|
||||||
+ // Paper start - use saner max's for bounding box
|
+ // Paper start - use saner max's for bounding box
|
||||||
+ boolean illegal = false;
|
+ boolean illegal = false;
|
||||||
+ double maxW = this.getWidth() * 2;
|
+ double maxW = Math.max(1, this.getWidth() * 2);
|
||||||
+ double maxH = this.getHeight();
|
+ double maxH = Math.max(1, this.getHeight());
|
||||||
double len = axisalignedbb.maxX - axisalignedbb.minX;
|
double len = axisalignedbb.maxX - axisalignedbb.minX;
|
||||||
- if (len < 0) maxX = minX;
|
- if (len < 0) maxX = minX;
|
||||||
- if (len > 64) maxX = minX + 64.0;
|
- if (len > 64) maxX = minX + 64.0;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren