When using the `/carpet setDefault` command, the input rule value is written to the conf file before being validated
Fallen-Breath opened this issue ยท 0 comments
carpet.api.settings.SettingsManager#setDefault
fabric-carpet/src/main/java/carpet/api/settings/SettingsManager.java
Lines 692 to 708 in 814e96e
As described in the title, the conf file writing (line 699) code happens before the rule value validation (line 702). As a result, invalid rule might be written to the config file, causing unexpected issues on next world loading
This issues affects all existing fabric-carpet versions. It was probrably introduced from the carpetmod 1.12 age