When using the "Open to LAN" feature and the in-options difficulty switcher, difficulty switches before you exit the options screen, as soon as you click. This is unlike what happens when not open to LAN. Okay, but why does this inconsistency suck? Well, I like to play on easy. Going easy –-> hard, then hard –> easy, is what you usually do when using a zombie to infect villagers to then cure them. Unfortunately, this crosses over the peaceful difficulty, so if you decided to enjoy spectator mode earlier in your session for a bit, all of your precious villagers and the nametagged zombie you used to infect them will now be gone. Also the zombie for your iron farm. And so on. Now that I know this interaction exists, I suppose I can simply work around it by using slash commands or saving and rejoining, but it's a bit of a bummer... As far as I know this is the only GUI difficulty swap option and it shouldn't work this way IMO.
This is easily tested with hostile mobs: try swapping difficulty from hard to easy while not open and you'll have no despawning, but when open to LAN you will get despawns.
Attachments
Comments 5
I confirm this issue.
This is certainly due because when a world isn't opened to LAN, the game is paused while swapping the difficulty so it isn't applied. But when it is opened to LAN, the game is not paused so the difficulty is applied even if the player hasn't pressed the "Done" button.
Affects 23w45a. May be intended, and in any case the workaround (command blocks) is fairly trivial.
The best fix in my opinion would be to add dropdown menus to the UI, both here and in other places. A slider could also suffice here but might feel weird since there are only 4 (thematically non-numeric) values to choose from. Alternatively, some sort of change to peaceful mode itself could address this issue.
Actually I just remembered, you can hold shift while clicking the button to cycle through menu options in reverse. This is probably the easiest way to achieve the desired functionality in this instance.
Cannot confirm