Skip to content

Commit

Permalink
Update BiomeRecipeLogic.java
Browse files Browse the repository at this point in the history
  • Loading branch information
trainvoi committed Oct 21, 2024
1 parent 8f25b5c commit c87e107
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ public BiomeRecipeLogic(RecipeMapMultiblockController tileEntity) {
*/
@Override
public boolean checkRecipe(@NotNull Recipe recipe) {
return checkBiomeRequirement(recipe) && super.checkRecipe(recipe);
return checkHeightRequirement() && checkBiomeRequirement(recipe) && super.checkRecipe(recipe);
}

public boolean checkHeightRequirement() {
return getMetaTileEntity().getPos().getY() == 64;
}
/**
* This is a method for biome checking
Expand Down

0 comments on commit c87e107

Please sign in to comment.