Confirmed 1.13-pre1
Confirmed 1.13-pre1
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.
It also affects 1.18.