File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/mekanism/common/recipe/lookup/cache/type Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public void clear() {
4141 */
4242 @ Override
4343 public boolean contains (INPUT input ) {
44- return super .contains (input ) || componentInputCache .containsKey (input );
44+ return super .contains (input ) || (! componentInputCache .isEmpty () && componentInputCache . containsKey (input ) );
4545 }
4646
4747 /**
@@ -51,6 +51,9 @@ public boolean contains(INPUT input) {
5151 */
5252 @ Override
5353 public Iterable <RECIPE > getRecipes (INPUT input ) {
54+ if (componentInputCache .isEmpty ()) {
55+ return super .getRecipes (input );
56+ }
5457 List <RECIPE > nbtRecipes = componentInputCache .getOrDefault (input , Collections .emptyList ());
5558 if (nbtRecipes .isEmpty ()) {
5659 return super .getRecipes (input );
You can’t perform that action at this time.
0 commit comments