We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible fix: private void turnToDirt(World worldIn, BlockPos pos) { IBlockState iblockstate = Blocks.DIRT.getDefaultState(); worldIn.setBlockState(pos, iblockstate); AxisAlignedBB axisalignedbb = iblockstate.getCollisionBoundingBox(worldIn, pos).offset(pos);
for (Entity entity : worldIn.getEntitiesWithinAABBExcludingEntity((Entity)null, axisalignedbb)) { if (entity instanceof EntityPlayerMP) { double delta = axisalignedbb.maxY - entity.posY; ((EntityPlayerMP) entity).connection.setPlayerLocation(0, delta, 0, 0, 0, EnumSet.allOf(SPacketPlayerPosLook.EnumFlags.class)); } else { entity.setPosition(entity.posX, axisalignedbb.maxY, entity.posZ); } }
}
relevant post: https://discord.com/channels/881234100504109166/1333065684233486449 this is the same behavior as: https://bugs.mojang.com/browse/MC-104259
fa76204
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description of the Bug
possible fix:
private void turnToDirt(World worldIn, BlockPos pos) {
IBlockState iblockstate = Blocks.DIRT.getDefaultState();
worldIn.setBlockState(pos, iblockstate);
AxisAlignedBB axisalignedbb = iblockstate.getCollisionBoundingBox(worldIn, pos).offset(pos);
}
relevant post: https://discord.com/channels/881234100504109166/1333065684233486449
this is the same behavior as: https://bugs.mojang.com/browse/MC-104259
Reproduction
2025-01-25.20-09-24.mp4
Version
fa76204
Relevant log output
The text was updated successfully, but these errors were encountered: