Skip to content

Commit

Permalink
Prevent duplicate relics in AutoComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrelpoid committed Nov 7, 2018
1 parent cf86a8d commit 7b4177b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/basemod/BaseMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -1081,8 +1081,8 @@ public static void removeRelic(AbstractRelic relic) {
// lists the IDs of all Relics from all pools. The casts are actually not
// unchecked
@SuppressWarnings("unchecked")
public static ArrayList<String> listAllRelicIDs() {
ArrayList<String> relicIDs = new ArrayList<>();
public static Set<String> listAllRelicIDs() {
HashSet<String> relicIDs = new HashSet<>();

HashMap<String, AbstractRelic> sharedRelics = (HashMap<String, AbstractRelic>) ReflectionHacks
.getPrivateStatic(RelicLibrary.class, "sharedRelics");
Expand Down

0 comments on commit 7b4177b

Please sign in to comment.