Skip to content

Commit

Permalink
Fix traversal order of RecipeMap. (#3764)
Browse files Browse the repository at this point in the history
Co-authored-by: Julia Dijkstra <julia.dijkstra@technolution.nl>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Maya <10861407+serenibyss@users.noreply.github.com>
  • Loading branch information
4 people authored Jan 11, 2025
1 parent 6fa0969 commit 7784cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/gregtech/api/recipe/RecipeMapBackend.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import org.jetbrains.annotations.Unmodifiable;

import com.google.common.collect.HashMultimap;
import com.google.common.collect.LinkedHashMultimap;
import com.google.common.collect.SetMultimap;

import gregtech.api.GregTechAPI;
Expand All @@ -54,11 +54,11 @@ public class RecipeMapBackend {
/**
* Recipe index based on items.
*/
private final SetMultimap<GTItemStack, GTRecipe> itemIndex = HashMultimap.create();
private final SetMultimap<GTItemStack, GTRecipe> itemIndex = LinkedHashMultimap.create();
/**
* Recipe index based on fluids.
*/
private final SetMultimap<String, GTRecipe> fluidIndex = HashMultimap.create();
private final SetMultimap<String, GTRecipe> fluidIndex = LinkedHashMultimap.create();

/**
* All the recipes belonging to this backend, indexed by recipe category.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private static void quantumTransformerRecipes() {
.duration(20 * SECONDS)
.eut(TierEU.RECIPE_ZPM)
.metadata(QFT_FOCUS_TIER, 1)
.noBuffer()
.addTo(quantumForceTransformerRecipes);
// Glues and Solders
GTValues.RA.stdBuilder()
Expand Down

0 comments on commit 7784cf7

Please sign in to comment.