mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-07-17 19:40:45 +00:00
refactor: remove duplicate custom name handling in boss renderers
The custom name assignment for boss mobs is already handled inside the `BossMobGuiInfo::setBossHealth` method. The removed code in both `WitherBossRenderer` and `EnderDragonRenderer` was redundant and not working.
This commit is contained in:
@@ -20,10 +20,11 @@ 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();
|
||||
}
|
||||
// GeorgeV22 - BossMobGuiInfo::setBossHealth already handles this
|
||||
// if (!mob->getCustomName().empty())
|
||||
// {
|
||||
// BossMobGuiInfo::name = mob->getCustomName();
|
||||
// }
|
||||
|
||||
int modelVersion = dynamic_cast<WitherBossModel*>(model)->modelVersion();
|
||||
if (modelVersion != this->modelVersion)
|
||||
|
||||
Reference in New Issue
Block a user