We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b33fafb commit e0de8faCopy full SHA for e0de8fa
src/main/java/gregtech/api/recipes/RecipeContext.java
@@ -6,6 +6,7 @@
6
7
import it.unimi.dsi.fastutil.Hash;
8
import it.unimi.dsi.fastutil.objects.Object2IntOpenCustomHashMap;
9
+import org.jetbrains.annotations.Nullable;
10
11
import java.util.Map;
12
@@ -15,8 +16,8 @@ public class RecipeContext<I> {
15
16
ChanceBoostFunction boostFunction;
17
public int baseTier, machineTier;
18
- public RecipeContext(Hash.Strategy<I> strategy) {
19
- this.cache = new Object2IntOpenCustomHashMap<>(strategy);
+ public RecipeContext(@Nullable Hash.Strategy<I> strategy) {
20
+ this.cache = strategy == null ? null : new Object2IntOpenCustomHashMap<>(strategy);
21
}
22
23
public RecipeContext() {
0 commit comments