Skip to content

Options with the same name all get modified when using Deep Search #178

@TomBombTom

Description

@TomBombTom

Describe the bug

When 'Deep Search' is enabled, and there are multiple options with the same name (but still in different parts of the config file), changing one of them changes all of the others (with the same name), to the new value.

I discovered this when trying to change the number of filter slots for upgrades in Sophisticated Backpacks, which is in the server config. (I am using version 3.25.24 of SB, not sure if that matters at all)

To Reproduce

  1. Load game
  2. Load into/create a new world (Superflat will do fine)
  3. Open pause menu
  4. Click on Mods button
  5. Choose a mod with a server config, and options of the same name (I am using Sophisticated Backpacks, which is when I first noticed this bug)
  6. Open server config
  7. Enable 'Deep Search'
  8. Search using a term which brings up options with the same name (I searched “Filter Slots”
  9. Modify only one of the values (I just modified the first one from 9 to 10)
  10. Click back onto the search bar
  11. All of the other options which have the same name have had their values changed to whatever it was changed to in step 9

Expected behavior

I would have expected only the value I had actually changed to be changed, not all values with the same name.

Mod Version

2.6.3

Minecraft Version

1.21.1

Modloader

NeoForge (21.1.218)

Crash Log (if applicable)

No response

Additional context

ModList

Copied from Prism Launcher (Not sure why some of the versions say the wrong thing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions