Skip to content

Commit

Permalink
Cleanup isValidMetaTileEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored and Dream-Master committed Oct 30, 2023
1 parent d7ee7be commit 0f500e7
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 0f500e7

Please sign in to comment.