legoraft / simple-survival-tweaks

A mod that allows you to tweak aspects of your survival world
https://modrinth.com/mod/simple-survival-tweaks
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Config isn't saved per world in version 1.1.0 #9

Open legoraft opened 11 months ago

legoraft commented 11 months ago

Description The config file for survivaltweaks isn't saved within the world directory

Reproduction Steps to reproduce the bug:

  1. Open a world, change a rule
  2. Check where survivaltweaks.properties is
  3. It isn't in the world dir

This can be fixed, but is kinda difficult. On ServerWorldEvents.LOAD, you can call server.getWorldSavePath.resolve("dir"). You can call this within the config load() function as a parameter, but the load function on the command and gui interfaces has to be changed

legoraft commented 11 months ago

Currently, there is a way to save the config file per world directory in the dev branch. There are still a few bugs to this that need to be fixed: