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

This commit is contained in:
Sylvessa
2026-04-04 22:04:02 -05:00
committed by GitHub
parent 7dfe46aa5d
commit a4e689095c
4 changed files with 11 additions and 2 deletions

View File

@@ -105,5 +105,5 @@ public:
// 4J Stu - These are required for the BossMob interface
virtual float getMaxHealth() { return Monster::getMaxHealth(); };
virtual float getHealth() { return Monster::getHealth(); };
virtual wstring getAName() { return app.GetString(IDS_WITHER); };
virtual wstring getAName() { if (hasCustomName()) return getCustomName(); return app.GetString(IDS_WITHER); };
};