Skip to content

[Bug]: Saved Bookmarks are lost when reconnecting to SMP server #4273

@FelixGrafschmidt

Description

@FelixGrafschmidt

Steps to Reproduce the Bug

  1. Setup a local MP server on a connection that uses a dynamic IP
  2. Connect to the server
  3. Save some items/recipes
  4. Disconnect
  5. Reconnect after a new IP was assigned

Expected Behavior

All saved items and recipes are still available

Actual Behavior

Saved items and recipes are gone

Mod Pack URL (Optional)

https://www.curseforge.com/minecraft/modpacks/ftb-stoneblock-4

Mod Pack Version (Optional)

1.8.0

Extra Notes (Optional)

This seems to be related to #3925 even though I do not think the workaround described there will work.
I had a look into the sourcecode and with no real knowledge of the project I strongly assume that the issue arises due to private static Optional<Path> getWorldPath() in Common/src/main/java/mezz/jei/common/util/ServerConfigPathUtil.java where a hash is calculated from the server IP and appended to the configuration folder name. This will return a different string when the dynamic IP changes. I don't have a good idea how to fix this, unfortunately.

latest.log

https://gist.github.com/FelixGrafschmidt/ec83626ce0ede014a32cf8696b40d795

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions