Skip to content

Commit

Permalink
Fix nullable Inscriber inputs (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 authored Jun 18, 2024
1 parent efe726e commit 10a0453
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;


Expand Down Expand Up @@ -58,8 +59,8 @@ public class InscriberRecipe implements IInscriberRecipe {
this.inputs.addAll(inputs);

this.output = output;
this.maybeTop = top;
this.maybeBot = bot;
this.maybeTop = top == null || top.isEmpty() ? Collections.emptyList() : top;
this.maybeBot = bot == null || bot.isEmpty() ? Collections.emptyList() : bot;

this.type = type;
}
Expand Down Expand Up @@ -129,6 +130,4 @@ public int hashCode() {
result = 31 * result + this.type.hashCode();
return result;
}


}

0 comments on commit 10a0453

Please sign in to comment.