While the game is paused, changing the difficulty from non-peaceful to peaceful then changing it back still makes all hostile mobs disappear.
Steps to reproduce:
Enable “Enable Pause Game” in General settings.
Enter a singleplayer world and summon some hostile mobs.
Pause the game.
Change the difficulty to peaceful, then change it back.
Unpause the game.
Expected result:
Adjustments made while the game is paused should not take effect. Settings changes should only apply the second you unpause the game.
Actual result:
Even if you change it back before unpausing the game, the changes still take effect, making accidental misclicks unrecoverable.
Thank you for helping us improve Minecraft! We saved your files: