Skip to content

Commit

Permalink
Temporary hotfix for research ID lookup (GregTechCEu#2391)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Feb 19, 2024
1 parent 3f8d011 commit df3cf24
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,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 df3cf24

Please sign in to comment.