mojira.dev
MC-101334

Required space for placing a boat is too small

The bug

The required space when placing a boat is too small.

This allows the collision box of the boat to intersect with blocks.
At 18w31a will make the boat fall into the void.

Video:
https://www.youtube.com/watch?v=MlRPQVz-y9Y

How to reproduce

  1. Put a boat in your hand

  2. Place a block on the ground

  3. Look at the ground right in front of the placed block

  4. Hold right click while slowly moving the cursor away from the block

Code analysis

Based on 1.12.2 decompiled using MCP 9.40

The method net.minecraft.item.ItemBoat.onItemRightClick(World, EntityPlayer, EnumHand) decreases the collision box size when it tests for no collisions:

if (!worldIn.getCollisionBoxes(entityboat, entityboat.getEntityBoundingBox().grow(-0.1D)).isEmpty())
{
    return new ActionResult<ItemStack>(EnumActionResult.FAIL, itemstack);
}

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media][media][media][media]
j_p_smith

Related to MC-1310.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

I've attached an updated video since the previous one is quite outdated.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w13a.

Avoma

Can confirm in 21w14a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w16a.

Avoma

Can confirm in 1.17.

[Mod]Les3awe

(Unassigned)

Confirmed

Normal

Collision, Entities, Hitboxes

block, boat, desired-range, hitbox, overlay, placed, small, through-wall

Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, ..., 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w40a, 21w43a

1.18 Pre-release 1

Retrieved