Fix nullable Inscriber inputs (#464)
This commit is contained in:
@@ -27,6 +27,7 @@ import javax.annotation.Nonnull;
|
|||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
@@ -58,8 +59,8 @@ public class InscriberRecipe implements IInscriberRecipe {
|
|||||||
this.inputs.addAll(inputs);
|
this.inputs.addAll(inputs);
|
||||||
|
|
||||||
this.output = output;
|
this.output = output;
|
||||||
this.maybeTop = top;
|
this.maybeTop = top == null || top.isEmpty() ? Collections.emptyList() : top;
|
||||||
this.maybeBot = bot;
|
this.maybeBot = bot == null || bot.isEmpty() ? Collections.emptyList() : bot;
|
||||||
|
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
@@ -129,6 +130,4 @@ public class InscriberRecipe implements IInscriberRecipe {
|
|||||||
result = 31 * result + this.type.hashCode();
|
result = 31 * result + this.type.hashCode();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user