Held Item Tooltips [Forge & Fabric]

Held Item Tooltips [Forge & Fabric]

437k Downloads

[Bug]: Items with custom rarities are rendered black

thelegitdolt opened this issue ยท 2 comments

commented

Mod Loader (Required)

Forge

Minecraft Version(s) (Required)

1.20.1

Mod Version(s) (Required)

8.0.0

Minimal Setup (Required)

No

Notes (Required)

Image The tooltip is rendered black.

(it's supposed to be this color)

Image

latest.log (Required)

not req

commented

Have recreated this even after toying with config options to no avail!

commented

can attest to this, only occurs when its a custom color being assigned as opposed to an in-built chat formatting color being used.

nuclear rarity (for tremorzilla egg below) is registered as follows and does work correctly.

public static final Rarity RARITY_NUCLEAR = Rarity.create("alexscaves:nuclear", ChatFormatting.GREEN);

Image

while sweet rarity (for sweet tooth below) is registered as follows and does not work correctly.

public static final Rarity RARITY_SWEET = Rarity.create("alexscaves:sweet", style -> style.withColor(0XFF8ACD));

Image

while it should look like this:

Image

this error only occurs with rarities using custom colors. as shown to work correctly with descriptions below

Image