Set mob's jname to name if not specified (#8003)

Fixes #8001
This commit is contained in:
Vincent Stumpf
2023-11-03 05:25:35 -07:00
committed by GitHub
parent 676c2483ac
commit 02cd29c57b

View File

@@ -4447,6 +4447,8 @@ uint64 MobDatabase::parseBodyNode(const ryml::NodeRef& node) {
name.resize(NAME_LENGTH);
mob->jname = name;
} else if (!exists) {
mob->jname = mob->name;
}
if (this->nodeExists(node, "Level")) {