Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Commit

Permalink
Hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
duplexsystem committed Feb 3, 2021
1 parent 9c34bf8 commit 60089a2
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,21 @@ private void handle(
(baseType == BaseMappingType.SPIGOT ? bot.spigotParser : bot.yarnParser)
.parseMapping(mappingType, version, mapping);
if (mappings.isEmpty()) {
channel.sendMessage("No information found for: " + mapping).queue();
if (mapping.contains("@")) {
channel.sendMessage("No information found.").queue();
} else {
channel.sendMessage("No information found for: " + mapping).queue();
}
return;
}
MappingPaginator paginator = new MappingPaginator(mappings);
List<Mapping> paged = paginator.getPage(page);
if (paged.isEmpty()) {
channel.sendMessage("Invalid page " + page).queue();
if (mapping.contains("@")) {
channel.sendMessage("Invalid page.").queue();
} else {
channel.sendMessage("Invalid page " + page).queue();
}
return;
}
StringBuilder messageBuilder = new StringBuilder();
Expand Down

0 comments on commit 60089a2

Please sign in to comment.