9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00

配方注册顺序有序

This commit is contained in:
XiaoMoMi
2025-10-03 22:08:09 +08:00
parent edf6b8940c
commit 7504b5cad6

View File

@@ -17,7 +17,7 @@ import java.util.*;
public abstract class AbstractRecipeManager<T> implements RecipeManager<T> {
protected final Map<RecipeType, List<Recipe<T>>> byType = new EnumMap<>(RecipeType.class);
protected final Map<Key, Recipe<T>> byId = new HashMap<>();
protected final Map<Key, Recipe<T>> byId = new LinkedHashMap<>();
protected final Map<Key, List<Recipe<T>>> byResult = new HashMap<>();
protected final Map<Key, List<Recipe<T>>> byIngredient = new HashMap<>();
protected final Set<Key> dataPackRecipes = new HashSet<>();