block-aware teleport behavior inconsistent on the west edges of blocks
Partner Rank:
2
Partner Team Reporting:
Everbloom Studios
Verification builds:
1.15.0.56
Summary:
A block-aware teleport command is supposed to fail the teleport if the entity's collision box would intersect a block's collision box in the destination. However, it seems to ignore a fraction of the block on the west side. This appears to be proportional to half the width of the entity's collision box. (So in the instance of the player's 0.6-wide collision box, the west-most 0.3 of the block always gives a false positive)
Impact:
This makes block-aware teleportation unreliable for relative or local coordinates in an environment that the player is able to manipulate using blocks.
Repro Steps:
- Open a world.
- Create a 1-block-wide pillar.
- Position yourself against the north face of the pillar, close to the west side.
- Use the /tp command to teleport yourself 1 block in the Z direction with a block-aware teleport (with "true" at the end): /tp ~ ~ ~1 true
Observed Results:
The command succeeds and you are teleported into the block briefly, before being pushed out by the block.
Expected Results:
The command should fail as there is a block in the way.
Screenshots/Videos attached: Yes/No
Yes
Regression Builds:
Unknown
Notes: