Skip to content

Commit

Permalink
Cleanup isValidMetaTileEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune committed Oct 30, 2023
1 parent dd0d02b commit 546fc3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public boolean isCorrectMachinePart(ItemStack stack) {
@Override
public @NotNull CheckRecipeResult checkProcessing() {
// return early if no input busses are present, the first bus is invalid or the TE is not on a space station
if (mInputBusses.isEmpty() || !isValidMetaTileEntity(mInputBusses.get(0))) {
if (mInputBusses.isEmpty() || !mInputBusses.get(0).isValid()) {
resetMachine(true);
return SimpleCheckRecipeResult.ofFailure("no_mining_pipe");
}
Expand Down

0 comments on commit 546fc3a

Please sign in to comment.