Skip to content

PolyColor constants should be immutable #842

Description

@lunaynx

Original reporter & ticket id

Polyfrost/REDACTION#34

Category

API

Bug description

PolyColor constants are shared mutable singletons, meaning if you use the same constant (e.g. PolyColor.WHITE) as the default value for multiple config options, changing one of them changes all of them (changes take effect after closing the OneConfig GUI).

Steps to reproduce

  1. Launch a client with REDACTION 2.0.0 (not 2.0.1+)
  2. Open the config
  3. Change Snow Color or Line Color
  4. Close the config
  5. Reopen the config
  6. Observe how both have changed to the same color

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions