Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Jul 30, 2024
1 parent 0a6a94f commit f7288bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public String getName() {
* @return The unlocalized, decolorized name for this {@link Research}
*/
public String getUnlocalizedName() {
return TextUtils.toPlainText(TextUtils.fromText(name));
return name;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public List<String> onTabComplete(CommandSender sender, Command cmd, String labe
suggestions.add("reset");

for (Research research : researches) {
suggestions.add(research.getUnlocalizedName());
suggestions.add(research.getName());
}

return createReturnList(suggestions, args[2]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private Optional<Research> getResearchFromString(String input) {
}

for (Research research : Slimefun.getRegistry().getResearches()) {
if (research.getUnlocalizedName().equals(input)) {
if (research.getName().equals(input)) {
return Optional.of(research);
}
}
Expand Down

0 comments on commit f7288bd

Please sign in to comment.