From 4251b53d7575ee3d05f24a0aa8492429074dbc66 Mon Sep 17 00:00:00 2001 From: dragon <52032586+eternalcomet@users.noreply.github.com> Date: Thu, 13 Apr 2023 12:59:40 +0800 Subject: [PATCH] Fix boss name display. (#2111) --- .../java/emu/grasscutter/game/entity/EntityMonster.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/entity/EntityMonster.java b/src/main/java/emu/grasscutter/game/entity/EntityMonster.java index 9a05c4123..7c5d2f629 100644 --- a/src/main/java/emu/grasscutter/game/entity/EntityMonster.java +++ b/src/main/java/emu/grasscutter/game/entity/EntityMonster.java @@ -238,8 +238,10 @@ public class EntityMonster extends GameEntity { .setPoseId(this.getPoseId()) .setBlockId(getScene().getId()) .setBornType(MonsterBornType.MONSTER_BORN_TYPE_DEFAULT); - - if (getMonsterData().getDescribeData() != null) { + if (metaMonster.special_name_id != 0) { + monsterInfo.setTitleId(metaMonster.title_id) + .setSpecialNameId(metaMonster.special_name_id); + } else if (getMonsterData().getDescribeData() != null) { monsterInfo.setTitleId(getMonsterData().getDescribeData().getTitleId()) .setSpecialNameId(getMonsterData().getSpecialNameId());