Spiderman31807 / MC-Modded

Click the Link below to find the Source Code of all of these mods
https://github.com/Spiderman31807/MC-Modded-Source
GNU General Public License v3.0
1 stars 0 forks source link

Bug: Factions not saved to file. #2

Open Cursedth opened 1 month ago

Cursedth commented 1 month ago

Hey there,

I am currently on mc 1.20.1 using forge 47.3.0.

The mod doesn't generate the config-file.

During edited Game mobs behaved correctly as enemies and allies.

However when I reloaded the game the next day all my settings were gone and there was no config file to be found.

Made a few other edits with Faction in a new game but no config file.

Spiderman31807 commented 1 month ago

if it doesn't generate the config file i dont think there is much i can do, i registered it correctly and after that it's all up to forge to save it. however even without a config file, it should still save the factions for that world, as its stores it as NBT data for the individual world.. and all changes made on a world are not saved to a config (because idk how to edit configs with code)

also note that the config file is a common, not server or client, (this was done to make it generate outside the world folder, so you can edit it and it'll apply to new worlds)

ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Settings.Spec, "MobFactions.toml");