Do not require Action mob name, fixes #1815

This commit is contained in:
PikaMug 2021-10-16 21:25:13 -04:00
parent 480e53a2c0
commit 4f6c032e68

View File

@ -388,10 +388,9 @@ public class ActionFactory implements ConversationAbandonedListener {
ss = section.createSection("mob-spawns." + count);
}
final QuestMob questMob = QuestMob.fromString(s);
if (questMob.getName() == null) {
continue;
if (questMob.getName() != null) {
ss.set("name", questMob.getName());
}
ss.set("name", questMob.getName());
ss.set("spawn-location", ConfigUtil.getLocationInfo(questMob.getSpawnLocation()));
ss.set("mob-type", questMob.getType().name());
ss.set("spawn-amounts", questMob.getSpawnAmounts());