Hello, I'm the developer of Cold Sweat. I recently made some updates to my mod that seem to have broken some compatibility implementation between the two mods. I had a user create an issue reporting this error:
java.lang.NoSuchFieldError: CELSIUS
at mod.crend.autohud.compat.ColdSweatCompat$TemperatureState.lambda$new$0(ColdSweatCompat.java:48) ~[autohud-8.7+1.20.1-forge.jar%23158!/:?]
Cold Sweat recently changed how the "Celsius" config setting is stored. Instead of a boolean (true if units should be displayed in Celsius, false if they should be displayed in Fahrenheit), it instead stores a Units enum directly, either C, F, or MC. This means instead of referencing it like this:
Units units = ConfigSettings.CELSIUS.get() ? Units.C : Units.F
You would simply reference it like this:
Units units = ConfigSettings.UNITS.get()
I was going to submit a pull request to fix the issue, but this repository doesn't seem to have the latest version of the codebase. I hope this explanation helps.
Hello, I'm the developer of Cold Sweat. I recently made some updates to my mod that seem to have broken some compatibility implementation between the two mods. I had a user create an issue reporting this error:
Cold Sweat recently changed how the "Celsius" config setting is stored. Instead of a boolean (true if units should be displayed in Celsius, false if they should be displayed in Fahrenheit), it instead stores a
Unitsenum directly, eitherC,F, orMC. This means instead of referencing it like this:You would simply reference it like this:
I was going to submit a pull request to fix the issue, but this repository doesn't seem to have the latest version of the codebase. I hope this explanation helps.