diff --git a/common/src/main/java/juuxel/adorn/client/resources/ColorManager.java b/common/src/main/java/juuxel/adorn/client/resources/ColorManager.java index a9e353e4d..676ce199c 100644 --- a/common/src/main/java/juuxel/adorn/client/resources/ColorManager.java +++ b/common/src/main/java/juuxel/adorn/client/resources/ColorManager.java @@ -107,7 +107,7 @@ public record ColorPair(int bg, int fg) { private static final int DEFAULT_FG = Colors.SCREEN_TEXT; private static final Codec COLOR_CODEC = - Codec.STRING.comapFlatMap(ColorManager::parseHexColor, color -> HexFormat.of().withUpperCase().toHexDigits(color)); + Codec.STRING.comapFlatMap(ColorManager::parseHexColor, color -> '#' + HexFormat.of().withUpperCase().toHexDigits(color)); public static final Codec CODEC = Codecs.alternatively( RecordCodecBuilder.create(instance -> instance.group( COLOR_CODEC.fieldOf("bg").forGetter(ColorPair::bg),