Update all tiles to use their given icon names and register with new name patterns with misc changes

This commit is contained in:
Soggy_Pancake 2026-03-14 13:56:35 -07:00
parent 6635d352dc
commit 4eaea8dc3f
51 changed files with 278 additions and 275 deletions

View file

@ -34,7 +34,9 @@ void StainedGlassBlock::registerIcons(IconRegister *iconRegister)
{
for (int i = 0; i < ICONS_LENGTH; i++)
{
ICONS[i] = iconRegister->registerIcon(getIconName() + L"_" + DyePowderItem::COLOR_TEXTURES[getItemAuxValueForBlockData(i)]);
int val = getItemAuxValueForBlockData(i);
auto colorName = (val != DyePowderItem::SILVER ? DyePowderItem::COLOR_TEXTURES[val] : L"light_gray");
ICONS[i] = iconRegister->registerIcon(colorName + L"_" + getIconName());
}
}