I was working on a Zombiefied Piglin farm, and had been repeatedly switching to and from creative mode to work on my design before building it in my server. I had been AFK in survival mode, switched back into creative and they stayed angry at me. The only notable difference in what I did before the bug and after was I used the "F3+F4" menu to switch rather than commands. When I reloaded the world the issue resolved itself, but I felt like this most likely wasn't intentional.
Thank you for your report!
We're tracking this issue in MC-146524, 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:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki