Banners Complete!

Fixed improper behaviors of banners to adhere to LCE, as well as redid the banner recipes!
This commit is contained in:
Tranqlmao
2026-07-15 14:50:09 -04:00
parent f3a4f21029
commit 454da0ce3c
15 changed files with 389 additions and 47 deletions
+4 -4
View File
@@ -259,8 +259,8 @@ void ItemInHandRenderer::renderItem(shared_ptr<LivingEntity> mob, shared_ptr<Ite
if (dynamic_cast<BannerItem*>(item->getItem()) != nullptr && BannerRenderer::instance != nullptr)
{
int baseColor = item->getAuxValue() & 15;
BannerRenderer::instance->renderBannerForHand(1.0f, baseColor);
int baseColor = 15 - (item->getAuxValue() & 15);
BannerRenderer::instance->renderBannerForHand(1.0f, baseColor, item);
glPopMatrix();
return;
}
@@ -721,12 +721,12 @@ void ItemInHandRenderer::render(float a)
}
else if (dynamic_cast<BannerItem*>(item->getItem()) != nullptr && BannerRenderer::instance != nullptr)
{
int baseColor = item->getAuxValue() & 15;
int baseColor = 15 - (item->getAuxValue() & 15);
glRotatef(50.0f, 0.0f, 1.0f, 0.0f);
glTranslatef(0.0f, 0.05f, 0.0f);
const float bs = 0.6f;
glScalef(bs, -bs, -bs);
BannerRenderer::instance->renderBannerForHand(1.0f, baseColor);
BannerRenderer::instance->renderBannerForHand(1.0f, baseColor, item);
glPopMatrix();
return;
}