-
Bug
-
Resolution: Unresolved
-
None
-
1.14.4, 19w35a, 19w38b, 19w39a, 19w41a, 19w42a, 19w44a, 19w45a, 19w46a, 19w46b, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15.2, 20w10a, 20w11a, 20w12a, 20w14a, 20w15a, 20w18a, 20w19a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 8, 1.16.1, 20w28a, 1.16.2 Pre-release 1, 1.16.5, 1.17 Pre-release 2, 1.17.1, 22w05a
-
None
-
Confirmed
-
Camera, Entities, Rendering
How to reproduce
- Make sure your render distance is less than 8 chunks
/summon minecart ~ ~54 ~ {CustomDisplayTile:1,DisplayState:{Name:"stone"},DisplayOffset:-1152,NoGravity:1}
/summon minecart ~-2 ~60 ~ {CustomDisplayTile:1,DisplayState:{Name:"stone"},DisplayOffset:-1280,NoGravity:1}
- Face west, fly up and see how the second minecart appears
This causes minecarts to not render the custom display block properly in certain cases.
Code analysis (official mappings)
public boolean shouldRenderAtSqrDistance(double distance) { double d0 = this.getBoundingBox().getSize(); if (Double.isNaN(d0)) { d0 = 1.0D; } d0 *= 64.0D * viewScale; return distance < d0 * d0; }
This method should probably use getBoundingBoxForCulling instead of getBoundingBox
An entity's culling bounding box is different from the physical bounding box only in the case of minecarts and illusioners so this bug only affects these two entities.