FirEmerald / AdditionalPlacements

Vertical Slabs and Stairs framework and implementation
MIT License
4 stars 4 forks source link

[1.19.2 / BUG] DVSaS make other mods config wipe and create .bak files #11

Closed murao-kun closed 1 year ago

murao-kun commented 1 year ago

Due to change made in latest version of the mod (1.19.2-1.5.0.jar) config files of other mods are wiping and creating .bak files on startup. image I made sure that my mod file is not corrupted and other mods are fine too. The issue 100% happening only with mod installed.

Rimevel commented 1 year ago

I think this might be the culprit. Looks like the whole config directory is targeted with "CONFIGDIR", when it should only target the config of the mod. https://github.com/FirEmerald/DynamicVerticalSlabsAndStairs/blob/26640f4ee19a11cef90914973169029b228ae3d1/src/main/java/com/firemerald/dvsas/DVSaSMod.java#L35

FirEmerald commented 1 year ago

the directory argument specifies where config files are saved. Using a different path would just create a bunch of config files in a different directory and load them from there (before forge eventually loads them from the correct path). The argument is meant so that server configs are loaded from the world's config directory instead of the normal config directory.

FirEmerald commented 1 year ago

Should be fixed as of b7fdb0170bec2c2a44566affaa04ca9e3f72e3a6 and d87d4883e5a967603e90069d59a4c779a2be3165