fzzyhmstrs / fconfig

Other
7 stars 3 forks source link

Resetting enums to default #21

Closed MincraftEinstein closed 1 day ago

MincraftEinstein commented 2 days ago

Resetting an enum config reverts to the first defined enum value rather than the value defined by the variable

public TestEnum testConfig = TestEnum.VALUE_2;

public enum TestEnum {
    VALUE_1,
    VALUE_2
}

When the config is reset the restored value will be VALUE_1 not the defined default VALUE_2

Minecraft version: 1.21 Mod version: 0.5.5 Mod loader: Neoforge and Fabric Language: Java

fzzyhmstrs commented 1 day ago

fixed inDev for release 0.5.6