Skip to content

Updated Cold Sweat Breaks Compatibility Implementation #196

@MikulDev

Description

@MikulDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions