Skip to content

Commit

Permalink
检查默认对话框配置
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name committed Jan 12, 2024
1 parent 87a030b commit 52e1371
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/com/smallaswater/npc/dialog/DialogPages.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
import lombok.Setter;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;

/**
* @author LT_Name
Expand All @@ -43,9 +40,10 @@ private void load() {
DialogPage dialogPage = new DialogPage(this, page);
this.dialogPageMap.put(dialogPage.getKey(), dialogPage);
} catch (Exception e) {
RsNPC.getInstance().getLogger().error("加载对话页面失败:" + this.name + "." + page.get("key"), e);
RsNPC.getInstance().getLogger().error(RsNPC.getInstance().getLanguage().translateString("plugin.load.dialog.dataError", this.name + "." + page.get("key")), e);
}
});
Objects.requireNonNull(getDefaultDialogPage(), "Default dialog page cannot be null");
}

public DialogPage getDefaultDialogPage() {
Expand Down

0 comments on commit 52e1371

Please sign in to comment.