When a block is placed very close to an entity, 2 bugs can happen:
The block is placed but the sound of placing a block is not played.
The block is not placed but the sound of placing a block is played.
This has happened to me with Iron Golems. The bugs are clearly visible in the video.
Environment
Windows 10, Java version 8 update 251 (compilation 1.8.0_251-b08)
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-129112, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord