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);
}

Linked issues

Attachments

Comments 13

Related to MC-1310.

Can confirm in 21w03a.

Can confirm in 21w05a.

Can confirm in 21w05b.

Can confirm in 21w06a.

3 more comments

Can confirm in 21w13a.

Can confirm in 21w14a.

Can confirm in 21w15a.

Can confirm in 21w16a.

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