TreyRuffy / BetterF3

A Fabric mod ported to Forge for Minecraft that provides a highly customizable, more human-readable Debug HUD.
https://modrinth.com/mod/betterf3
MIT License
26 stars 11 forks source link

[Bug]: Local Difficulty appears blank in servers #62

Open arnavt78 opened 8 months ago

arnavt78 commented 8 months ago

Describe the Bug

When entering any server on 1.20.2 and higher, and enabling the 'Local Difficulty' option in the mod settings, then opening the F3 menu, the Local Difficulty field will not have any value shown. This is probably due to the changes in 1.20.2 where the client will stop inferring values from the server and showing incorrect values. However, this value was shown before disabling and re-enabling the mod through the mod's settings. The day counter works as expected, showing the correct value even after disabling and enabling the mod, even though the vanilla F3 menu does not show that on servers either.

Steps to Reproduce

  1. Join a server using the Multiplayer option.
  2. Open the F3 screen, showing that the Local Difficulty option is working as expected.
  3. Leave the server and join a singleplayer world, and open the F3 menu.
  4. Close the F3 menu and disable the mod through Settings.
  5. Re-open the F3 screen. Then close it and enable the mod again.
  6. Exit the singleplayer world and join a multiplayer server.
  7. Open the F3 screen.
  8. Take note as to whether or not the local difficulty option appears blank or not.

Expected Behavior

It was expected for the local difficulty to keep showing as normal.

Screenshots

Screenshot 2024-01-14 145330

Modloader Type

Fabric

Modloader Version

fabric-loader-0.15.3-1.20.4

Mod Version

v9.0.0

Log Output

No response

Additional Context

No response

arnavt78 commented 8 months ago

By the way, I'm not sure if you need to preform all of those steps to get to the bug. That is what I did to get to it, but there may be an easier way.