FirEmerald / AdditionalPlacements

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

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

Closed murao-kun closed 2 years ago

murao-kun commented 2 years 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 2 years 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 2 years 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 2 years ago

Should be fixed as of b7fdb0170bec2c2a44566affaa04ca9e3f72e3a6 and d87d4883e5a967603e90069d59a4c779a2be3165