Skip to content

Commit 78b27b2

Browse files
committed
Ooops, could have been a NPE
1 parent 9c6bbbd commit 78b27b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/net/teamio/taam/conveyors/api/ProcessingRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public static IProcessingRecipe getRecipe(int machine, ItemStack input) {
3737
Map<Item, IProcessingRecipe[]> recipes = ProcessingRegistry.recipes[machine];
3838

3939
IProcessingRecipe[] matches = recipes.get(input.getItem());
40-
Log.debug("Fetching recipe for machine " + machine + ": " + input + "->" + matches.length + " matches");
4140

4241
if(matches != null) {
42+
Log.debug("Fetching recipe for machine " + machine + ": " + input + "->" + matches.length + " matches");
4343
for(IProcessingRecipe recipe : matches) {
4444
if(recipe != null && recipe.inputMatches(input)) {
4545
Log.debug("Matching recipe " + recipe);

0 commit comments

Comments
 (0)