fix: wither and ender dragon custom names (#1472)

This commit is contained in:
Sylvessa authored and GitHub committed 2026-04-04 22:04:02 -05:00
1 parent 7dfe46aa5d
commit a4e689095c
4 files changed
+11 -2

No files matched your search

+4
View File
@@ -20,6 +20,10 @@ void WitherBossRenderer::render(shared_ptr<Entity> entity, double x, double y, d
shared_ptr<WitherBoss> mob = dynamic_pointer_cast<WitherBoss>(entity);
BossMobGuiInfo::setBossHealth(mob, true);
if (!mob->getCustomName().empty())
{
BossMobGuiInfo::name = mob->getCustomName();
}
int modelVersion = dynamic_cast<WitherBossModel*>(model)->modelVersion();
if (modelVersion != this->modelVersion)