Played on a singleplayer world without closing the game for about 10 hours, while making a villager trading farm. Upon trying to trade with more than 2 villagers at once, the game would act like a laggy server, with me being able to move around like normal, but with none of my interactions going through. EXP orbs would circle around me without me getting any levels, clicking on villagers would do nothing, and upon relaunching the game after it inevitably crashing, I was back at a point I had been about 5 minutes prior, acting like a rollback. I recreated this once only, as this is a quite time-consuming glitch to do, and it did the exact same thing.
Linked issues
Comments
I believe it happened once with optifine and once without

Thank you for your report!
We're tracking this issue in MC-228721, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Did you happen to be using optifine when experiencing this issue? (MC-228721)