Skip to content

Commit

Permalink
Temporary hotfix for research ID lookup (#2391)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Feb 19, 2024
1 parent 4d18a9f commit 4588f6d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ public boolean removeRecipe(@NotNull Recipe recipe) {

@Override
public void addDataStickEntry(@NotNull String researchId, @NotNull Recipe recipe) {
if (researchId.contains("xmetaitem.")) {
// save compatibility with an issue in 2.8.6, causing research IDs to change
addDataStickEntry(researchId.replace("xmetaitem.", "xitem.meta_item."), recipe);
}
Collection<Recipe> collection = researchEntries.computeIfAbsent(researchId, (k) -> new ObjectOpenHashSet<>());
collection.add(recipe);
}
Expand Down

0 comments on commit 4588f6d

Please sign in to comment.