mojira.dev

kyaco

More than one avatar was detected! There might be multiple accounts sharing this same name.

Assigned

No issues.

Reported

View all
MC-120480 Pets teleport onto blocks which have a solid "bottom", not "top" face Fixed MC-120439 Both of upper and lower half of a single door compose a village Cannot Reproduce

Comments

Can reproduce in v26.2, build 41527341.

Can reproduce in v26.0, build 40538508.

It also affects 1.18.

I think this bug duplicates MC-128299. MC-129939 is a bug which occurs when placing block UNDER water. These may relate each other.

A falling block which age is over 600 ticks (30 sec) will turn into item in the air as intended.
It is the cause, isn't it?

This causes pet suffocation bug in shulker box, though it is really rare case.
Should I make another issue page for it?

My suggestion to fix this bug here.
I use decompiled version of minecraft by mcp940 for MC 1.12.

The cause is the mothod func_192381_a in class EntityAIFollowOwner.
I think "EnumFacing.DOWN" should be "Enum.Facing.UP" in the final line.

protected boolean func_192381_a(int p_192381_1_, int p_192381_2_, int p_192381_3_, int p_192381_4_, int p_192381_5_)
{
    BlockPos blockpos = new BlockPos(p_192381_1_ + p_192381_4_, p_192381_3_ - 1, p_192381_2_ + p_192381_5_);
    IBlockState iblockstate = this.theWorld.getBlockState(blockpos);
    return iblockstate.func_193401_d(this.theWorld, blockpos, EnumFacing.DOWN) == BlockFaceShape.SOLID && iblockstate.canEntitySpawn(this.thePet) && this.theWorld.isAirBlock(blockpos.up()) && this.theWorld.isAirBlock(blockpos.up(2));
}

Sorry for bothring you. Now I have uploaded screenshots.