This seems to happen because the code that determines the banner color uses the first string before _ as a dye color. But light_gray_banner would have color light (because that's the first thing in an array of split _ strings), and light color does not exist. So, it fall backs to pre-1.13 materials, where INK_SAC was used as a dye, but I am running 1.20.4 (which uses its own BLACK_DYE instead).
I'd suggest stripping _banner from the material name instead to determine the color. That means that this also works for things like light_gray (light_gray_dye is a valid material).
This error occurs only when editing
light_gray_banner
, other banners seem to be unaffected. The relevant log lines seem to be:Relevant code seems to be:
https://github.com/emanondev/ItemEdit/blob/98cf6bc77ac7352d5a0cad8219831739157b1c4f/src/main/java/emanondev/itemedit/gui/BannerEditor.java#L209-L215
This seems to happen because the code that determines the banner color uses the first string before
_
as a dye color. Butlight_gray_banner
would have colorlight
(because that's the first thing in an array of split_
strings), andlight
color does not exist. So, it fall backs to pre-1.13 materials, whereINK_SAC
was used as a dye, but I am running 1.20.4 (which uses its ownBLACK_DYE
instead).I'd suggest stripping
_banner
from the material name instead to determine the color. That means that this also works for things likelight_gray
(light_gray_dye
is a valid material).