The warning screen that appears when locking the difficulty of a world through the World Options screen shows the incorrect difficulty. It always shows the difficulty when the World Options screen was opened.
Steps to reproduce:
Create a world and open the World Options screen
Change the difficulty
Click the lock icon
Notice how the difficulty in the warning screen is incorrect
Expected Result:
The warning screen should accurately reflect what will happen.
Observed Result:
The warning screen is wrong.
Thank you for helping us improve Minecraft! We saved your files: